@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.
Files changed (195) hide show
  1. package/README.md +99 -42
  2. package/dist/App.d.ts +1 -1
  3. package/dist/basic.css +32 -6
  4. package/dist/components/ErrorMessage/ErrorMessage.d.ts +2 -2
  5. package/dist/components/Form/Form.d.ts +8 -0
  6. package/dist/components/Form/index.d.ts +1 -0
  7. package/dist/components/Notification/Notification.d.ts +2 -2
  8. package/dist/components/Row/Row.d.ts +2 -2
  9. package/dist/components/index.d.ts +7 -8
  10. package/dist/contexts/FormUI/index.d.ts +3 -3
  11. package/dist/contexts/FormUI/useFormUI.d.ts +18 -117
  12. package/dist/contexts/FormUI/useFormUIContext.d.ts +32 -632
  13. package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +6 -5
  14. package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +11 -10
  15. package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +194 -112
  16. package/dist/entry/index.d.ts +5 -6
  17. package/dist/hooks/useTaxBit/useTaxBit.d.ts +108 -4
  18. package/dist/i18n/i18n.d.ts +1 -1
  19. package/dist/i18n/index.d.ts +1 -2
  20. package/dist/i18n/locales/bg-bg.d.ts +2 -0
  21. package/dist/i18n/locales/cs-cz.d.ts +2 -0
  22. package/dist/i18n/locales/da-dk.d.ts +2 -0
  23. package/dist/i18n/locales/de-at.d.ts +2 -0
  24. package/dist/i18n/locales/de-de.d.ts +1 -1
  25. package/dist/i18n/locales/el-cy.d.ts +2 -0
  26. package/dist/i18n/locales/el-gr.d.ts +2 -0
  27. package/dist/i18n/locales/en-gb.d.ts +1 -1
  28. package/dist/i18n/locales/en-us.d.ts +1 -1
  29. package/dist/i18n/locales/es-es.d.ts +1 -1
  30. package/dist/i18n/locales/et-ee.d.ts +2 -0
  31. package/dist/i18n/locales/fi-fi.d.ts +2 -0
  32. package/dist/i18n/locales/fr-fr.d.ts +1 -1
  33. package/dist/i18n/locales/fr-lu.d.ts +2 -0
  34. package/dist/i18n/locales/ga-ie.d.ts +2 -0
  35. package/dist/i18n/locales/hr-hr.d.ts +2 -0
  36. package/dist/i18n/locales/hu-hu.d.ts +2 -0
  37. package/dist/i18n/locales/index.d.ts +21 -1
  38. package/dist/i18n/locales/it-it.d.ts +1 -1
  39. package/dist/i18n/locales/lt-lt.d.ts +2 -0
  40. package/dist/i18n/locales/lv-lv.d.ts +2 -0
  41. package/dist/i18n/locales/mt-mt.d.ts +2 -0
  42. package/dist/i18n/locales/nl-be.d.ts +2 -0
  43. package/dist/i18n/locales/nl-nl.d.ts +1 -1
  44. package/dist/i18n/locales/no-no.d.ts +1 -1
  45. package/dist/i18n/locales/pl-pl.d.ts +2 -0
  46. package/dist/i18n/locales/pt-pt.d.ts +1 -1
  47. package/dist/i18n/locales/ro-ro.d.ts +2 -0
  48. package/dist/i18n/locales/sk-sk.d.ts +2 -0
  49. package/dist/i18n/locales/sl-si.d.ts +2 -0
  50. package/dist/i18n/locales/sv-se.d.ts +1 -1
  51. package/dist/i18n/types/LocalizationKey.d.ts +10 -10
  52. package/dist/i18n/types/PropertyFile.d.ts +6 -2
  53. package/dist/i18n/types/index.d.ts +0 -1
  54. package/dist/i18n/utils/getText.d.ts +16 -15
  55. package/dist/index.css +4 -0
  56. package/dist/inline.css +33 -6
  57. package/dist/lookups/dayOptions.d.ts +1 -1
  58. package/dist/lookups/index.d.ts +3 -2
  59. package/dist/lookups/localeOptions.d.ts +4 -0
  60. package/dist/lookups/toOptions.d.ts +3 -0
  61. package/dist/minimal.css +0 -1
  62. package/dist/services/api.d.ts +3 -2
  63. package/dist/taxbit-react-sdk.es.js +18748 -6610
  64. package/dist/taxbit-react-sdk.umd.js +10 -10
  65. package/dist/test/Wrapper.d.ts +7 -0
  66. package/dist/test/getWrapper.d.ts +4 -0
  67. package/dist/test/index.d.ts +2 -0
  68. package/dist/types/Locale.d.ts +1 -0
  69. package/dist/types/TaxDocumentation.d.ts +8 -5
  70. package/dist/types/client/index.d.ts +6 -0
  71. package/dist/types/index.d.ts +1 -0
  72. package/dist/types/{external → server}/ComprehensiveTaxDocumentation.d.ts +7 -11
  73. package/dist/types/server/TaxDocumentationStatus.d.ts +9 -0
  74. package/dist/types/server/enums.d.ts +13 -0
  75. package/dist/types/server/index.d.ts +3 -0
  76. package/dist/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
  77. package/dist/ui/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +1 -0
  78. package/dist/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +20 -0
  79. package/dist/ui/HideShowButton/HideShowButton.d.ts +5 -0
  80. package/dist/ui/HideShowButton/index.d.ts +1 -0
  81. package/dist/ui/MaskedContent/MaskedContent.d.ts +4 -0
  82. package/dist/ui/MaskedContent/index.d.ts +1 -0
  83. package/dist/ui/MaskedInput/MaskedInput.d.ts +10 -0
  84. package/dist/ui/MaskedInput/index.d.ts +1 -0
  85. package/dist/ui/Password/Password.d.ts +10 -0
  86. package/dist/ui/Password/index.d.ts +1 -0
  87. package/dist/ui/RadioButtons/RadioButtons.d.ts +3 -3
  88. package/dist/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
  89. package/dist/ui/TextInput/TextInput.d.ts +2 -1
  90. package/dist/ui/index.d.ts +2 -0
  91. package/dist/utils/getFieldsState.d.ts +4 -3
  92. package/dist/utils/getHintKeyMap.d.ts +4 -3
  93. package/dist/utils/getMonthlyDayCount.d.ts +1 -0
  94. package/dist/utils/getPromptKeyMap.d.ts +6 -5
  95. package/dist/utils/index.d.ts +10 -14
  96. package/dist/utils/kebabCase.d.ts +1 -0
  97. package/dist/utils/{getForeignAccountType.d.ts → transformInbound/getForeignAccountType.d.ts} +1 -1
  98. package/dist/utils/{getForeignOtherClassification.d.ts → transformInbound/getForeignOtherClassification.d.ts} +1 -1
  99. package/dist/utils/{getForeignTrustClassification.d.ts → transformInbound/getForeignTrustClassification.d.ts} +1 -1
  100. package/dist/utils/{getLLCClassification.d.ts → transformInbound/getLLCClassification.d.ts} +1 -1
  101. package/dist/utils/{getUsAccountType.d.ts → transformInbound/getUsAccountType.d.ts} +1 -1
  102. package/dist/utils/transformInbound/index.d.ts +6 -0
  103. package/dist/utils/transformInbound/transformInbound.d.ts +3 -0
  104. package/dist/utils/transformOutbound/convertYesNoToBoolean.d.ts +2 -0
  105. package/dist/utils/transformOutbound/index.d.ts +6 -0
  106. package/dist/utils/transformOutbound/transformOutbound.d.ts +3 -0
  107. package/dist/utils/transformOutbound/transformToOutboundAccoutHolder.d.ts +3 -0
  108. package/dist/utils/transformOutbound/transformToOutboundAddress.d.ts +6 -0
  109. package/dist/utils/transformOutbound/transformToOutboundRegardedOwner.d.ts +3 -0
  110. package/dist/utils/transformOutbound/transformToOutboundTaxResidenceFields.d.ts +3 -0
  111. package/dist/validations/getInvalidFields.d.ts +3 -0
  112. package/dist/validations/getNotifiedFields.d.ts +10 -0
  113. package/dist/validations/getRequiredFields.d.ts +3 -0
  114. package/dist/validations/getSubmittableFields.d.ts +3 -0
  115. package/dist/{utils → validations}/getSupportedFields.d.ts +1 -1
  116. package/dist/validations/getVisibleFields.d.ts +3 -0
  117. package/dist/validations/index.d.ts +7 -1
  118. package/dist/validations/invalidFieldRules.d.ts +7 -0
  119. package/dist/validations/requiredFieldRules.d.ts +7 -0
  120. package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -11
  121. package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +7 -7
  122. package/dist/wizard/AddressInput/AddressInput.d.ts +8 -0
  123. package/dist/wizard/LanguageSelector/LanguageSelector.d.ts +2 -0
  124. package/dist/wizard/LanguageSelector/index.d.ts +1 -0
  125. package/dist/{paths → wizard}/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +1 -1
  126. package/dist/{paths → wizard}/ResidenceInput/ResidenceInput.d.ts +3 -3
  127. package/dist/{paths → wizard}/RowInput/CheckBoxRow/CheckBoxRow.d.ts +2 -2
  128. package/dist/wizard/RowInput/ErrorRow/ErrorRow.d.ts +6 -0
  129. package/dist/wizard/RowInput/ErrorRow/index.d.ts +1 -0
  130. package/dist/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +10 -0
  131. package/dist/wizard/RowInput/MaskedInputRow/index.d.ts +1 -0
  132. package/dist/{paths → wizard}/RowInput/TextInputRow/TextInputRow.d.ts +3 -1
  133. package/dist/{paths → wizard}/RowInput/VisibleRow/VisibleRow.d.ts +2 -2
  134. package/dist/wizard/RowInput/index.d.ts +7 -0
  135. package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +1 -1
  136. package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +1 -1
  137. package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +1 -1
  138. package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +1 -1
  139. package/dist/{paths → wizard}/TaxBitFormUI/Exemptions/Exemptions.d.ts +1 -1
  140. package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +1 -1
  141. package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +1 -1
  142. package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +1 -1
  143. package/dist/{paths → wizard}/TaxBitFormUI/Summary/Recap.d.ts +1 -1
  144. package/dist/{paths → wizard}/TaxBitFormUI/Summary/Summary.d.ts +1 -1
  145. package/dist/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +4 -0
  146. package/dist/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +11 -0
  147. package/package.json +17 -9
  148. package/dist/components/Page/Page.d.ts +0 -6
  149. package/dist/components/Page/index.d.ts +0 -1
  150. package/dist/components/Title/Title.d.ts +0 -5
  151. package/dist/components/Title/index.d.ts +0 -1
  152. package/dist/i18n/types/Locale.d.ts +0 -1
  153. package/dist/paths/AddressInput/AddressInput.d.ts +0 -8
  154. package/dist/paths/FinancialAccountInput/FinancialAccountInput.d.ts +0 -2
  155. package/dist/paths/FinancialAccountInput/index.d.ts +0 -1
  156. package/dist/paths/RowInput/ErrorRow/ErrorRow.d.ts +0 -2
  157. package/dist/paths/RowInput/ErrorRow/index.d.ts +0 -1
  158. package/dist/paths/RowInput/index.d.ts +0 -6
  159. package/dist/paths/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -11
  160. package/dist/paths/TaxBitFormUI/TaxBitFormUI.d.ts +0 -12
  161. package/dist/paths/VatInput/VatInput.d.ts +0 -8
  162. package/dist/paths/VatInput/index.d.ts +0 -1
  163. package/dist/types/external/index.d.ts +0 -1
  164. package/dist/utils/getNotifications.d.ts +0 -10
  165. package/dist/utils/getVisibleQuestions.d.ts +0 -6
  166. package/dist/utils/transformInbound.d.ts +0 -3
  167. package/dist/utils/transformOutbound.d.ts +0 -3
  168. package/dist/validations/validations.d.ts +0 -7
  169. /package/dist/{taxbit-react-sdk.es.d.ts → index.d.ts} +0 -0
  170. /package/dist/{paths → wizard}/AddressInput/index.d.ts +0 -0
  171. /package/dist/{paths → wizard}/PlaceOfBirthInput/index.d.ts +0 -0
  172. /package/dist/{paths → wizard}/ResidenceInput/index.d.ts +0 -0
  173. /package/dist/{paths → wizard}/RowInput/CheckBoxRow/index.d.ts +0 -0
  174. /package/dist/{paths → wizard}/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -0
  175. /package/dist/{paths → wizard}/RowInput/DateOfBirthRow/index.d.ts +0 -0
  176. /package/dist/{paths → wizard}/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -0
  177. /package/dist/{paths → wizard}/RowInput/RadioButtonRow/index.d.ts +0 -0
  178. /package/dist/{paths → wizard}/RowInput/SelectRow/SelectRow.d.ts +0 -0
  179. /package/dist/{paths → wizard}/RowInput/SelectRow/index.d.ts +0 -0
  180. /package/dist/{paths → wizard}/RowInput/TextInputRow/index.d.ts +0 -0
  181. /package/dist/{paths → wizard}/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -0
  182. /package/dist/{paths → wizard}/RowInput/ToggleButtonRow/index.d.ts +0 -0
  183. /package/dist/{paths → wizard}/RowInput/VisibleRow/index.d.ts +0 -0
  184. /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -0
  185. /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -0
  186. /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -0
  187. /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -0
  188. /package/dist/{paths → wizard}/TaxBitFormUI/Exemptions/index.d.ts +0 -0
  189. /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -0
  190. /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -0
  191. /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -0
  192. /package/dist/{paths → wizard}/TaxBitFormUI/Summary/index.d.ts +0 -0
  193. /package/dist/{paths → wizard}/TaxBitFormUI/index.d.ts +0 -0
  194. /package/dist/{paths → wizard}/TaxBitFormUI/steps.d.ts +0 -0
  195. /package/dist/{paths → wizard}/index.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const huHu: PropertyFile;
@@ -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 "./sv-se";
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 "../types/PropertyFile";
1
+ import { PropertyFile } from '../types/PropertyFile';
2
2
  export declare const itIt: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const ltLt: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const lvLv: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const mtMt: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const nlBe: PropertyFile;
@@ -1,2 +1,2 @@
1
- import { PropertyFile } from "../types/PropertyFile";
1
+ import { PropertyFile } from '../types/PropertyFile';
2
2
  export declare const nlNl: PropertyFile;
@@ -1,2 +1,2 @@
1
- import { PropertyFile } from "../types/PropertyFile";
1
+ import { PropertyFile } from '../types/PropertyFile';
2
2
  export declare const noNo: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const plPl: PropertyFile;
@@ -1,2 +1,2 @@
1
- import { PropertyFile } from "../types/PropertyFile";
1
+ import { PropertyFile } from '../types/PropertyFile';
2
2
  export declare const ptPt: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const roRo: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const skSk: PropertyFile;
@@ -0,0 +1,2 @@
1
+ import { PropertyFile } from '../types/PropertyFile';
2
+ export declare const slSi: PropertyFile;
@@ -1,2 +1,2 @@
1
- import { PropertyFile } from "../types/PropertyFile";
1
+ import { PropertyFile } from '../types/PropertyFile';
2
2
  export declare const svSe: PropertyFile;
@@ -1,10 +1,10 @@
1
- export type ButtonKey = "edit" | "back" | "next" | "reset" | "submit" | "cancel";
2
- export type ErrorKey = "required" | "invalid" | "invalidDate" | "mustBeSixCharacters" | "mustBeNineDigits" | "mustBeFiveOrNineDigits" | "mustMatchName" | "mustBeInDateFormat" | "mustBeValidBirthDate" | "mustBeAResidenceCountry" | "mustNotMatchVatin";
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" | "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";
10
- export type HintKey = "dateOfBirth";
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
  };
@@ -1,2 +1 @@
1
1
  export * from "./LocalizationKey";
2
- export * from "./Locale";
@@ -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 "../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;
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
@@ -10,3 +10,7 @@
10
10
  -moz-osx-font-smoothing: grayscale;
11
11
  -webkit-text-size-adjust: 100%;
12
12
  }
13
+
14
+ html {
15
+ padding-bottom: 60px;
16
+ }
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-title {
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
  }[];
@@ -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.ts";
6
+ export * from "./foreignOtherClassificationOptions";
7
7
  export * from "./foreignRegardedOwnerAccountTypeOptions";
8
- export * from "./foreignTrustClassificationOptions.ts";
8
+ export * from "./foreignTrustClassificationOptions";
9
+ export * from "./localeOptions";
9
10
  export * from "./monthOptions";
10
11
  export * from "./payeeCodeOptions";
11
12
  export * from "./usAccountHolderAccountTypeOptions";
@@ -0,0 +1,4 @@
1
+ import { Locale } from "types";
2
+ export declare const localeOptions: {
3
+ value: Locale;
4
+ }[];
@@ -0,0 +1,3 @@
1
+ export declare const toOptions: <T extends string | number>(values: readonly T[]) => {
2
+ value: T;
3
+ }[];
package/dist/minimal.css CHANGED
@@ -14,7 +14,6 @@
14
14
  .taxbit-page {
15
15
  max-width: 600px;
16
16
  padding: 12px;
17
- margin-bottom: 100px;
18
17
  }
19
18
 
20
19
  .taxbit-row {
@@ -1,8 +1,9 @@
1
1
  export declare const api: {
2
2
  taxDocumentation: {
3
- post: (environment: "PRODUCTION" | "STAGING") => string;
3
+ post: (environment: 'PRODUCTION' | 'STAGING') => string;
4
+ get: (environment: 'PRODUCTION' | 'STAGING') => string;
4
5
  };
5
6
  taxDocumentationStatus: {
6
- get: (environment: "PRODUCTION" | "STAGING") => string;
7
+ get: (environment: 'PRODUCTION' | 'STAGING') => string;
7
8
  };
8
9
  };