@taxbit/react-sdk 0.0.16 → 0.2.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 +99 -42
- package/dist/App.d.ts +1 -1
- package/dist/basic.css +32 -6
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +2 -2
- package/dist/components/Form/Form.d.ts +8 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +2 -2
- package/dist/components/Row/Row.d.ts +2 -2
- package/dist/components/index.d.ts +7 -8
- package/dist/contexts/FormUI/index.d.ts +3 -3
- package/dist/contexts/FormUI/useFormUI.d.ts +18 -117
- package/dist/contexts/FormUI/useFormUIContext.d.ts +32 -632
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +6 -5
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +11 -10
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +194 -112
- package/dist/entry/index.d.ts +5 -6
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +108 -4
- package/dist/i18n/i18n.d.ts +1 -1
- package/dist/i18n/index.d.ts +1 -2
- package/dist/i18n/locales/bg-bg.d.ts +2 -0
- package/dist/i18n/locales/cs-cz.d.ts +2 -0
- package/dist/i18n/locales/da-dk.d.ts +2 -0
- package/dist/i18n/locales/de-at.d.ts +2 -0
- package/dist/i18n/locales/de-de.d.ts +1 -1
- package/dist/i18n/locales/el-cy.d.ts +2 -0
- package/dist/i18n/locales/el-gr.d.ts +2 -0
- package/dist/i18n/locales/en-gb.d.ts +1 -1
- package/dist/i18n/locales/en-us.d.ts +1 -1
- package/dist/i18n/locales/es-es.d.ts +1 -1
- package/dist/i18n/locales/et-ee.d.ts +2 -0
- package/dist/i18n/locales/fi-fi.d.ts +2 -0
- package/dist/i18n/locales/fr-fr.d.ts +1 -1
- package/dist/i18n/locales/fr-lu.d.ts +2 -0
- package/dist/i18n/locales/ga-ie.d.ts +2 -0
- package/dist/i18n/locales/hr-hr.d.ts +2 -0
- package/dist/i18n/locales/hu-hu.d.ts +2 -0
- package/dist/i18n/locales/index.d.ts +21 -1
- package/dist/i18n/locales/it-it.d.ts +1 -1
- package/dist/i18n/locales/lt-lt.d.ts +2 -0
- package/dist/i18n/locales/lv-lv.d.ts +2 -0
- package/dist/i18n/locales/mt-mt.d.ts +2 -0
- package/dist/i18n/locales/nl-be.d.ts +2 -0
- package/dist/i18n/locales/nl-nl.d.ts +1 -1
- package/dist/i18n/locales/no-no.d.ts +1 -1
- package/dist/i18n/locales/pl-pl.d.ts +2 -0
- package/dist/i18n/locales/pt-pt.d.ts +1 -1
- package/dist/i18n/locales/ro-ro.d.ts +2 -0
- package/dist/i18n/locales/sk-sk.d.ts +2 -0
- package/dist/i18n/locales/sl-si.d.ts +2 -0
- package/dist/i18n/locales/sv-se.d.ts +1 -1
- package/dist/i18n/types/LocalizationKey.d.ts +10 -10
- package/dist/i18n/types/PropertyFile.d.ts +6 -2
- package/dist/i18n/types/index.d.ts +0 -1
- package/dist/i18n/utils/getText.d.ts +16 -15
- package/dist/index.css +4 -0
- package/dist/inline.css +33 -6
- package/dist/lookups/dayOptions.d.ts +1 -1
- package/dist/lookups/index.d.ts +3 -2
- package/dist/lookups/localeOptions.d.ts +4 -0
- package/dist/lookups/toOptions.d.ts +3 -0
- package/dist/minimal.css +0 -1
- package/dist/services/api.d.ts +3 -2
- package/dist/taxbit-react-sdk.es.js +18748 -6610
- package/dist/taxbit-react-sdk.umd.js +10 -10
- package/dist/test/Wrapper.d.ts +7 -0
- package/dist/test/getWrapper.d.ts +4 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/types/Locale.d.ts +1 -0
- package/dist/types/TaxDocumentation.d.ts +8 -5
- package/dist/types/client/index.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/{external → server}/ComprehensiveTaxDocumentation.d.ts +7 -11
- package/dist/types/server/TaxDocumentationStatus.d.ts +9 -0
- package/dist/types/server/enums.d.ts +13 -0
- package/dist/types/server/index.d.ts +3 -0
- package/dist/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
- package/dist/ui/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +1 -0
- package/dist/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +20 -0
- package/dist/ui/HideShowButton/HideShowButton.d.ts +5 -0
- package/dist/ui/HideShowButton/index.d.ts +1 -0
- package/dist/ui/MaskedContent/MaskedContent.d.ts +4 -0
- package/dist/ui/MaskedContent/index.d.ts +1 -0
- package/dist/ui/MaskedInput/MaskedInput.d.ts +10 -0
- package/dist/ui/MaskedInput/index.d.ts +1 -0
- package/dist/ui/Password/Password.d.ts +10 -0
- package/dist/ui/Password/index.d.ts +1 -0
- package/dist/ui/RadioButtons/RadioButtons.d.ts +3 -3
- package/dist/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
- package/dist/ui/TextInput/TextInput.d.ts +2 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/utils/getFieldsState.d.ts +4 -3
- package/dist/utils/getHintKeyMap.d.ts +4 -3
- package/dist/utils/getMonthlyDayCount.d.ts +1 -0
- package/dist/utils/getPromptKeyMap.d.ts +6 -5
- package/dist/utils/index.d.ts +10 -14
- package/dist/utils/kebabCase.d.ts +1 -0
- package/dist/utils/{getForeignAccountType.d.ts → transformInbound/getForeignAccountType.d.ts} +1 -1
- package/dist/utils/{getForeignOtherClassification.d.ts → transformInbound/getForeignOtherClassification.d.ts} +1 -1
- package/dist/utils/{getForeignTrustClassification.d.ts → transformInbound/getForeignTrustClassification.d.ts} +1 -1
- package/dist/utils/{getLLCClassification.d.ts → transformInbound/getLLCClassification.d.ts} +1 -1
- package/dist/utils/{getUsAccountType.d.ts → transformInbound/getUsAccountType.d.ts} +1 -1
- package/dist/utils/transformInbound/index.d.ts +6 -0
- package/dist/utils/transformInbound/transformInbound.d.ts +3 -0
- package/dist/utils/transformOutbound/convertYesNoToBoolean.d.ts +2 -0
- package/dist/utils/transformOutbound/index.d.ts +6 -0
- package/dist/utils/transformOutbound/transformOutbound.d.ts +3 -0
- package/dist/utils/transformOutbound/transformToOutboundAccoutHolder.d.ts +3 -0
- package/dist/utils/transformOutbound/transformToOutboundAddress.d.ts +6 -0
- package/dist/utils/transformOutbound/transformToOutboundRegardedOwner.d.ts +3 -0
- package/dist/utils/transformOutbound/transformToOutboundTaxResidenceFields.d.ts +3 -0
- package/dist/validations/getInvalidFields.d.ts +3 -0
- package/dist/validations/getNotifiedFields.d.ts +10 -0
- package/dist/validations/getRequiredFields.d.ts +3 -0
- package/dist/validations/getSubmittableFields.d.ts +3 -0
- package/dist/{utils → validations}/getSupportedFields.d.ts +1 -1
- package/dist/validations/getVisibleFields.d.ts +3 -0
- package/dist/validations/index.d.ts +7 -1
- package/dist/validations/invalidFieldRules.d.ts +7 -0
- package/dist/validations/requiredFieldRules.d.ts +7 -0
- package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -11
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +7 -7
- package/dist/wizard/AddressInput/AddressInput.d.ts +8 -0
- package/dist/wizard/LanguageSelector/LanguageSelector.d.ts +2 -0
- package/dist/wizard/LanguageSelector/index.d.ts +1 -0
- package/dist/{paths → wizard}/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +1 -1
- package/dist/{paths → wizard}/ResidenceInput/ResidenceInput.d.ts +3 -3
- package/dist/{paths → wizard}/RowInput/CheckBoxRow/CheckBoxRow.d.ts +2 -2
- package/dist/wizard/RowInput/ErrorRow/ErrorRow.d.ts +6 -0
- package/dist/wizard/RowInput/ErrorRow/index.d.ts +1 -0
- package/dist/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +10 -0
- package/dist/wizard/RowInput/MaskedInputRow/index.d.ts +1 -0
- package/dist/{paths → wizard}/RowInput/TextInputRow/TextInputRow.d.ts +3 -1
- package/dist/{paths → wizard}/RowInput/VisibleRow/VisibleRow.d.ts +2 -2
- package/dist/wizard/RowInput/index.d.ts +7 -0
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/Exemptions/Exemptions.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/Summary/Recap.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/Summary/Summary.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +4 -0
- package/dist/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +11 -0
- package/package.json +17 -9
- package/dist/components/Page/Page.d.ts +0 -6
- package/dist/components/Page/index.d.ts +0 -1
- package/dist/components/Title/Title.d.ts +0 -5
- package/dist/components/Title/index.d.ts +0 -1
- package/dist/i18n/types/Locale.d.ts +0 -1
- package/dist/paths/AddressInput/AddressInput.d.ts +0 -8
- package/dist/paths/FinancialAccountInput/FinancialAccountInput.d.ts +0 -2
- package/dist/paths/FinancialAccountInput/index.d.ts +0 -1
- package/dist/paths/RowInput/ErrorRow/ErrorRow.d.ts +0 -2
- package/dist/paths/RowInput/ErrorRow/index.d.ts +0 -1
- package/dist/paths/RowInput/index.d.ts +0 -6
- package/dist/paths/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -11
- package/dist/paths/TaxBitFormUI/TaxBitFormUI.d.ts +0 -12
- package/dist/paths/VatInput/VatInput.d.ts +0 -8
- package/dist/paths/VatInput/index.d.ts +0 -1
- package/dist/types/external/index.d.ts +0 -1
- package/dist/utils/getNotifications.d.ts +0 -10
- package/dist/utils/getVisibleQuestions.d.ts +0 -6
- package/dist/utils/transformInbound.d.ts +0 -3
- package/dist/utils/transformOutbound.d.ts +0 -3
- package/dist/validations/validations.d.ts +0 -7
- /package/dist/{taxbit-react-sdk.es.d.ts → index.d.ts} +0 -0
- /package/dist/{paths → wizard}/AddressInput/index.d.ts +0 -0
- /package/dist/{paths → wizard}/PlaceOfBirthInput/index.d.ts +0 -0
- /package/dist/{paths → wizard}/ResidenceInput/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/CheckBoxRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/DateOfBirthRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/RadioButtonRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/SelectRow/SelectRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/SelectRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/TextInputRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/ToggleButtonRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/VisibleRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/Exemptions/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/Summary/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/steps.d.ts +0 -0
- /package/dist/{paths → wizard}/index.d.ts +0 -0
|
@@ -1,10 +1,30 @@
|
|
|
1
|
+
export * from "./bg-bg";
|
|
2
|
+
export * from "./cs-cz";
|
|
3
|
+
export * from "./da-dk";
|
|
4
|
+
export * from "./de-at";
|
|
1
5
|
export * from "./de-de";
|
|
6
|
+
export * from "./el-cy";
|
|
7
|
+
export * from "./el-gr";
|
|
2
8
|
export * from "./en-gb";
|
|
3
9
|
export * from "./en-us";
|
|
4
10
|
export * from "./es-es";
|
|
11
|
+
export * from "./et-ee";
|
|
12
|
+
export * from "./fi-fi";
|
|
5
13
|
export * from "./fr-fr";
|
|
14
|
+
export * from "./fr-lu";
|
|
15
|
+
export * from "./ga-ie";
|
|
16
|
+
export * from "./hr-hr";
|
|
17
|
+
export * from "./hu-hu";
|
|
6
18
|
export * from "./it-it";
|
|
19
|
+
export * from "./lt-lt";
|
|
20
|
+
export * from "./lv-lv";
|
|
21
|
+
export * from "./mt-mt";
|
|
22
|
+
export * from "./nl-be";
|
|
7
23
|
export * from "./nl-nl";
|
|
8
24
|
export * from "./no-no";
|
|
9
|
-
export * from "./
|
|
25
|
+
export * from "./pl-pl";
|
|
10
26
|
export * from "./pt-pt";
|
|
27
|
+
export * from "./ro-ro";
|
|
28
|
+
export * from "./sk-sk";
|
|
29
|
+
export * from "./sl-si";
|
|
30
|
+
export * from "./sv-se";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const itIt: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const nlNl: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const noNo: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const ptPt: PropertyFile;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from
|
|
1
|
+
import { PropertyFile } from '../types/PropertyFile';
|
|
2
2
|
export declare const svSe: PropertyFile;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type ButtonKey =
|
|
2
|
-
export type ErrorKey =
|
|
3
|
-
export type NotificationKey =
|
|
4
|
-
export type OptionKey =
|
|
5
|
-
export type PromptKey =
|
|
6
|
-
export type SubPromptKey =
|
|
7
|
-
export type TitleKey =
|
|
8
|
-
export type SubTitleKey =
|
|
9
|
-
export type TextKey =
|
|
10
|
-
export type HintKey =
|
|
1
|
+
export type ButtonKey = 'edit' | 'back' | 'next' | 'reset' | 'submit' | 'cancel' | 'hide' | 'show';
|
|
2
|
+
export type ErrorKey = 'required' | 'invalid' | 'invalidDate' | 'mustBeSixCharacters' | 'mustBeNineDigits' | 'mustBeFiveOrNineDigits' | 'mustMatchName' | 'mustBeInDateFormat' | 'mustBeValidBirthDate' | 'mustNotMatchVatin' | 'vatCountryMustBeAResidenceCountry' | 'addressCountryMustBeAResidenceCountry';
|
|
3
|
+
export type NotificationKey = 'vatUnexpectedFormat';
|
|
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';
|
|
5
|
+
export type PromptKey = 'addAdditional' | 'address' | 'businessRegistrationNumber' | 'businessRegistrationNumberIsNotRequired' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'countryOfCitizenship' | 'dateOfBirth' | 'day' | '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' | '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';
|
|
10
|
+
export type HintKey = 'dateOfBirth';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ButtonKey, ErrorKey, HintKey, NotificationKey, OptionKey, PromptKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from "./LocalizationKey";
|
|
2
|
+
import { CaProvinceCode } from "types/CaProvinceCode";
|
|
2
3
|
import { CountryCode } from "types/CountryCode";
|
|
4
|
+
import { Locale } from "types/Locale";
|
|
5
|
+
import { MonthCode } from "types/MonthCode";
|
|
3
6
|
import { UsStateCode } from "types/UsStateCode";
|
|
4
|
-
import { CaProvinceCode } from "types/CaProvinceCode";
|
|
5
|
-
import { MonthCode } from "../../types";
|
|
6
7
|
export type PropertyFile = {
|
|
7
8
|
button: {
|
|
8
9
|
[key in ButtonKey]: string;
|
|
@@ -46,4 +47,7 @@ export type PropertyFile = {
|
|
|
46
47
|
month: {
|
|
47
48
|
[key in MonthCode]: string;
|
|
48
49
|
};
|
|
50
|
+
locale: {
|
|
51
|
+
[key in Locale]: string;
|
|
52
|
+
};
|
|
49
53
|
};
|
|
@@ -2,18 +2,19 @@ import { ButtonKey, ErrorKey, NotificationKey, OptionKey, PromptKey, SubPromptKe
|
|
|
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 "
|
|
6
|
-
export declare const getPromptText: (key: PromptKey, locale
|
|
7
|
-
export declare const getSubPromptText: (key: SubPromptKey, locale
|
|
8
|
-
export declare const getErrorText: (key: ErrorKey, locale
|
|
9
|
-
export declare const getHintText: (key: string | undefined, locale
|
|
10
|
-
export declare const getTextText: (key: TextKey, locale
|
|
11
|
-
export declare const getTitleText: (key: TitleKey, locale
|
|
12
|
-
export declare const getSubTitleText: (key: string, locale
|
|
13
|
-
export declare const getButtonText: (key: ButtonKey, locale
|
|
14
|
-
export declare const getOptionText: (key: OptionKey | undefined, locale
|
|
15
|
-
export declare const getNotificationText: (key: NotificationKey | undefined, locale
|
|
16
|
-
export declare const getCountryText: (key: CountryCode, locale
|
|
17
|
-
export declare const getUsStateText: (key: UsStateCode, locale
|
|
18
|
-
export declare const getCaProvinceText: (key: CaProvinceCode, locale
|
|
19
|
-
export declare const getMonthText: (key: string, locale
|
|
5
|
+
import { Locale } from "../../types";
|
|
6
|
+
export declare const getPromptText: (key: PromptKey, locale: Locale | undefined) => string;
|
|
7
|
+
export declare const getSubPromptText: (key: SubPromptKey, locale: Locale | undefined) => string;
|
|
8
|
+
export declare const getErrorText: (key: ErrorKey, locale: Locale | undefined) => string;
|
|
9
|
+
export declare const getHintText: (key: string | undefined, locale: Locale | undefined) => string | undefined;
|
|
10
|
+
export declare const getTextText: (key: TextKey, locale: Locale | undefined) => string;
|
|
11
|
+
export declare const getTitleText: (key: TitleKey, locale: Locale | undefined) => string;
|
|
12
|
+
export declare const getSubTitleText: (key: string, locale: Locale | undefined) => string;
|
|
13
|
+
export declare const getButtonText: (key: ButtonKey, locale: Locale | undefined) => string;
|
|
14
|
+
export declare const getOptionText: (key: OptionKey | undefined, locale: Locale | undefined) => string;
|
|
15
|
+
export declare const getNotificationText: (key: NotificationKey | undefined, locale: Locale | undefined) => string;
|
|
16
|
+
export declare const getCountryText: (key: CountryCode, locale: Locale | undefined) => string;
|
|
17
|
+
export declare const getUsStateText: (key: UsStateCode, locale: Locale | undefined) => string;
|
|
18
|
+
export declare const getCaProvinceText: (key: CaProvinceCode, locale: Locale | undefined) => string;
|
|
19
|
+
export declare const getMonthText: (key: string, locale: Locale | undefined) => string;
|
|
20
|
+
export declare const getLocaleText: (key: string, locale: Locale | undefined) => string;
|
package/dist/index.css
CHANGED
package/dist/inline.css
CHANGED
|
@@ -29,19 +29,26 @@ button:focus-visible {
|
|
|
29
29
|
.taxbit-page {
|
|
30
30
|
max-width: 600px;
|
|
31
31
|
padding: 12px;
|
|
32
|
-
margin-bottom: 100px;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
.taxbit-
|
|
34
|
+
.taxbit-page-header {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding-bottom: 8px;
|
|
38
|
+
border-bottom: solid 1px #E4EBF6;
|
|
39
|
+
margin-bottom: 20px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.taxbit-page-title {
|
|
43
|
+
margin: 0;
|
|
36
44
|
font-size: 1.2em;
|
|
37
45
|
line-height: 1.1;
|
|
38
46
|
font-weight: 600;
|
|
39
|
-
padding-bottom: 8px;
|
|
40
|
-
border-bottom: solid 1px #E4EBF6;
|
|
41
|
-
margin-bottom: 8px;
|
|
42
47
|
color: #12263F;
|
|
48
|
+
flex: 1 1 auto;
|
|
43
49
|
}
|
|
44
50
|
|
|
51
|
+
|
|
45
52
|
.taxbit-section {
|
|
46
53
|
margin: 20px 0;
|
|
47
54
|
.taxbit-section-title {
|
|
@@ -83,20 +90,34 @@ button:focus-visible {
|
|
|
83
90
|
|
|
84
91
|
.taxbit-row-actions {
|
|
85
92
|
flex: 0 0 10%;
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
86
95
|
}
|
|
87
96
|
.taxbit-row-action-button {
|
|
88
97
|
font-size: .8em;
|
|
89
98
|
padding: 0.2em 1em;
|
|
90
99
|
}
|
|
91
100
|
|
|
101
|
+
.taxbit-select-language {
|
|
102
|
+
border: 0;
|
|
103
|
+
outline: none;
|
|
104
|
+
opacity: 0.6;
|
|
105
|
+
width: 170px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.taxbit-select-language:focus {
|
|
109
|
+
border-bottom: solid 1px #E4EBF6;
|
|
110
|
+
opacity: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
92
113
|
.taxbit-label {
|
|
93
114
|
flex: 0 0 40%;
|
|
94
115
|
font-weight: 500;
|
|
95
|
-
line-height: 1.25em;
|
|
96
116
|
.taxbit-sub-label {
|
|
97
117
|
font-size: 0.8em;
|
|
98
118
|
opacity: 0.7;
|
|
99
119
|
font-weight: 400;
|
|
120
|
+
line-height: 1.25em;
|
|
100
121
|
}
|
|
101
122
|
}
|
|
102
123
|
.taxbit-input, .taxbit-select {
|
|
@@ -109,6 +130,12 @@ button:focus-visible {
|
|
|
109
130
|
color: rgb(18, 38, 63);
|
|
110
131
|
}
|
|
111
132
|
|
|
133
|
+
@media only screen and (max-width: 600px) {
|
|
134
|
+
.taxbit-input, .taxbit-select {
|
|
135
|
+
font-size: 100%;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
112
139
|
.taxbit-check-box {
|
|
113
140
|
margin: 5px;
|
|
114
141
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const dayOptions: {
|
|
2
|
-
value: "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09";
|
|
2
|
+
value: "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09";
|
|
3
3
|
}[];
|
package/dist/lookups/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ export * from "./countryOptions";
|
|
|
3
3
|
export * from "./dayOptions";
|
|
4
4
|
export * from "./fatcaCodeOptions";
|
|
5
5
|
export * from "./foreignAccountHolderAccountTypeOptions";
|
|
6
|
-
export * from "./foreignOtherClassificationOptions
|
|
6
|
+
export * from "./foreignOtherClassificationOptions";
|
|
7
7
|
export * from "./foreignRegardedOwnerAccountTypeOptions";
|
|
8
|
-
export * from "./foreignTrustClassificationOptions
|
|
8
|
+
export * from "./foreignTrustClassificationOptions";
|
|
9
|
+
export * from "./localeOptions";
|
|
9
10
|
export * from "./monthOptions";
|
|
10
11
|
export * from "./payeeCodeOptions";
|
|
11
12
|
export * from "./usAccountHolderAccountTypeOptions";
|
package/dist/minimal.css
CHANGED
package/dist/services/api.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare const api: {
|
|
2
2
|
taxDocumentation: {
|
|
3
|
-
post: (environment:
|
|
3
|
+
post: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
4
|
+
get: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
4
5
|
};
|
|
5
6
|
taxDocumentationStatus: {
|
|
6
|
-
get: (environment:
|
|
7
|
+
get: (environment: 'PRODUCTION' | 'STAGING') => string;
|
|
7
8
|
};
|
|
8
9
|
};
|