@taxbit/react-sdk 0.6.1 → 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.
Files changed (250) hide show
  1. package/README.md +88 -76
  2. package/dist/src/components/Address/Address.d.ts +1 -2
  3. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +1 -2
  4. package/dist/src/components/Form/Form.d.ts +2 -1
  5. package/dist/src/components/Form/index.d.ts +1 -1
  6. package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +6 -0
  7. package/dist/src/contexts/QuestionnaireUI/getLocal.d.ts +19 -0
  8. package/dist/src/contexts/{FormUI → QuestionnaireUI}/index.d.ts +3 -3
  9. package/dist/src/contexts/{FormUI/useFormUI.d.ts → QuestionnaireUI/useQuestionnaireUI.d.ts} +6 -6
  10. package/dist/src/contexts/{FormUI/useFormUIContext.d.ts → QuestionnaireUI/useQuestionnaireUIContext.d.ts} +18 -18
  11. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +7 -0
  12. package/dist/src/contexts/TaxDocumentation/index.d.ts +1 -1
  13. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +13 -15
  14. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +24 -30
  15. package/dist/src/contexts/index.d.ts +2 -2
  16. package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +9 -0
  17. package/dist/src/entry/TaxbitQuestionnaire/index.d.ts +1 -0
  18. package/dist/src/entry/index.d.ts +4 -6
  19. package/dist/src/hooks/index.d.ts +1 -1
  20. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +2 -0
  21. package/dist/src/hooks/{useTaxBit → useTaxbit}/__tests__/serverTaxDocumentation.d.ts +1 -1
  22. package/dist/src/hooks/useTaxbit/index.d.ts +1 -0
  23. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +9 -0
  24. package/dist/src/hooks/useTaxbit/useTaxbitConnect.d.ts +8 -0
  25. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +8 -0
  26. package/dist/src/i18n/index.d.ts +1 -1
  27. package/dist/src/i18n/locales/bg.d.ts +1 -0
  28. package/dist/src/i18n/locales/cs.d.ts +1 -0
  29. package/dist/src/i18n/locales/da.d.ts +1 -0
  30. package/dist/src/i18n/locales/de-at.d.ts +1 -2
  31. package/dist/src/i18n/locales/de.d.ts +3 -0
  32. package/dist/src/i18n/locales/el-cy.d.ts +3 -2
  33. package/dist/src/i18n/locales/el.d.ts +3 -0
  34. package/dist/src/i18n/locales/{bg-bg.d.ts → en-nz.d.ts} +1 -1
  35. package/dist/src/i18n/locales/{cs-cz.d.ts → en.d.ts} +1 -1
  36. package/dist/src/i18n/locales/{da-dk.d.ts → es.d.ts} +1 -1
  37. package/dist/src/i18n/locales/et.d.ts +1 -0
  38. package/dist/src/i18n/locales/fi.d.ts +1 -0
  39. package/dist/src/i18n/locales/{de-de.d.ts → fr-ca.d.ts} +1 -1
  40. package/dist/src/i18n/locales/fr-lu.d.ts +1 -2
  41. package/dist/src/i18n/locales/fr.d.ts +2 -0
  42. package/dist/src/i18n/locales/ga.d.ts +2 -0
  43. package/dist/src/i18n/locales/hr.d.ts +1 -0
  44. package/dist/src/i18n/locales/hu.d.ts +1 -0
  45. package/dist/src/i18n/locales/index.d.ts +33 -30
  46. package/dist/src/i18n/locales/it.d.ts +1 -0
  47. package/dist/src/i18n/locales/lt.d.ts +3 -0
  48. package/dist/src/i18n/locales/lv.d.ts +1 -0
  49. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +6 -0
  50. package/dist/src/i18n/locales/mt.d.ts +1 -0
  51. package/dist/src/i18n/locales/nl-be.d.ts +3 -2
  52. package/dist/src/i18n/locales/nl.d.ts +1 -0
  53. package/dist/src/i18n/locales/no.d.ts +1 -0
  54. package/dist/src/i18n/locales/pl.d.ts +3 -0
  55. package/dist/src/i18n/locales/pt.d.ts +1 -0
  56. package/dist/src/i18n/locales/ro.d.ts +1 -0
  57. package/dist/src/i18n/locales/sk.d.ts +1 -0
  58. package/dist/src/i18n/locales/sl.d.ts +1 -0
  59. package/dist/src/i18n/locales/sv.d.ts +1 -0
  60. package/dist/src/i18n/locales/translation-missing.d.ts +5 -0
  61. package/dist/src/i18n/localizationFileMap.d.ts +7 -0
  62. package/dist/src/i18n/types/LocalizationKey.d.ts +8 -8
  63. package/dist/src/i18n/types/PropertyFile.d.ts +23 -19
  64. package/dist/src/i18n/utils/getText.d.ts +2 -9
  65. package/dist/src/lookups/countryOptions.d.ts +1 -7
  66. package/dist/src/lookups/dayOptions.d.ts +1 -1
  67. package/dist/src/lookups/fatcaCodeOptions.d.ts +2 -2
  68. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +3 -15
  69. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +3 -17
  70. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +3 -11
  71. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +3 -9
  72. package/dist/src/lookups/index.d.ts +13 -16
  73. package/dist/src/lookups/localeOptions.d.ts +5 -1
  74. package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
  75. package/dist/src/lookups/toOptions.d.ts +1 -1
  76. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +3 -23
  77. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +3 -9
  78. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +3 -15
  79. package/dist/src/services/api.d.ts +7 -2
  80. package/dist/src/test/Wrapper.d.ts +3 -3
  81. package/dist/src/test/getWrapper.d.ts +3 -3
  82. package/dist/src/test/utils/helpers.d.ts +7 -2
  83. package/dist/src/types/InputStep.d.ts +2 -2
  84. package/dist/src/types/Locale.d.ts +1 -1
  85. package/dist/src/types/Questionnaire.d.ts +1 -0
  86. package/dist/src/types/StepId.d.ts +1 -1
  87. package/dist/src/types/TaxDocumentation.d.ts +30 -30
  88. package/dist/src/types/client/ClientTaxDocumentationStatus.d.ts +12 -3
  89. package/dist/src/types/client/index.d.ts +0 -1
  90. package/dist/src/types/index.d.ts +1 -6
  91. package/dist/src/types/server/TaxDocumentationStatus.d.ts +12 -3
  92. package/dist/src/types/server/index.d.ts +0 -1
  93. package/dist/src/ui/ActionButton/index.d.ts +1 -1
  94. package/dist/src/ui/CheckBox/CheckBox.d.ts +2 -1
  95. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
  96. package/dist/src/ui/DateOfBirthInput/index.d.ts +1 -1
  97. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +2 -2
  98. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +11 -0
  99. package/dist/src/ui/FormattedInput/index.d.ts +1 -0
  100. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +9 -0
  101. package/dist/src/ui/PasswordInput/index.d.ts +1 -0
  102. package/dist/src/ui/RadioButtons/index.d.ts +1 -1
  103. package/dist/src/ui/Select/index.d.ts +1 -1
  104. package/dist/src/ui/{MaskedInput/MaskedInput.d.ts → ShowHideInput/ShowHideInput.d.ts} +2 -3
  105. package/dist/src/ui/ShowHideInput/index.d.ts +1 -0
  106. package/dist/src/ui/TextInput/TextInput.d.ts +1 -2
  107. package/dist/src/ui/TextInput/index.d.ts +1 -1
  108. package/dist/src/ui/index.d.ts +3 -1
  109. package/dist/src/utils/formatUsTin.d.ts +5 -0
  110. package/dist/src/utils/getFieldsState.d.ts +16 -10
  111. package/dist/src/utils/getMaskedContent.d.ts +1 -0
  112. package/dist/src/utils/getPromptKeyMap.d.ts +22 -22
  113. package/dist/src/utils/index.d.ts +3 -2
  114. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -1
  115. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -1
  116. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +2 -0
  117. package/dist/src/utils/transformForClient/index.d.ts +1 -1
  118. package/dist/src/utils/transformForClient/transformForClient.d.ts +3 -2
  119. package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +1 -53
  120. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +1 -36
  121. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +1 -1
  122. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +1 -1
  123. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +1 -1
  124. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +1 -1
  125. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +1 -1
  126. package/dist/src/utils/transformInbound/transformInbound.d.ts +3 -3
  127. package/dist/src/utils/uppercase.d.ts +1 -0
  128. package/dist/src/validations/getInvalidFields.d.ts +2 -2
  129. package/dist/src/validations/getRequiredFields.d.ts +2 -2
  130. package/dist/src/validations/getSupportedFields.d.ts +2 -2
  131. package/dist/src/validations/getVisibleFields.d.ts +2 -2
  132. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -0
  133. package/dist/src/widgets/TaxbitQuestionnairePersist/index.d.ts +2 -0
  134. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +25 -0
  135. package/dist/src/widgets/index.d.ts +1 -1
  136. package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
  137. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +4 -1
  138. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +1 -2
  139. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
  140. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -3
  141. package/dist/src/wizard/RowInput/DateOfBirthRow/index.d.ts +1 -1
  142. package/dist/src/wizard/RowInput/ErrorRow/index.d.ts +1 -1
  143. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +2 -2
  144. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +11 -0
  145. package/dist/src/wizard/RowInput/ShowHideInputRow/index.d.ts +1 -0
  146. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +3 -4
  147. package/dist/src/wizard/RowInput/index.d.ts +1 -1
  148. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/index.d.ts +1 -0
  149. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/index.d.ts +1 -0
  150. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/index.d.ts +1 -0
  151. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/index.d.ts +1 -0
  152. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/index.d.ts +1 -0
  153. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/index.d.ts +1 -0
  154. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/index.d.ts +1 -0
  155. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/index.d.ts +1 -0
  156. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/index.d.ts +1 -0
  157. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +6 -0
  158. package/dist/src/wizard/TaxbitQuestionnaireUI/index.d.ts +1 -0
  159. package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/steps.d.ts +0 -1
  160. package/dist/src/wizard/index.d.ts +1 -1
  161. package/dist/taxbit-react-sdk.js +5799 -16652
  162. package/dist/taxbit-react-sdk.umd.cjs +10 -10
  163. package/package.json +13 -19
  164. package/style/basic.css +32 -13
  165. package/style/inline.css +32 -13
  166. package/dist/src/contexts/FormUI/FormUIProvider.d.ts +0 -6
  167. package/dist/src/contexts/FormUI/getLocal.d.ts +0 -20
  168. package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +0 -7
  169. package/dist/src/hooks/useTaxBit/__tests__/clientTaxDocumentation.d.ts +0 -2
  170. package/dist/src/hooks/useTaxBit/index.d.ts +0 -1
  171. package/dist/src/hooks/useTaxBit/useTaxBit.d.ts +0 -7
  172. package/dist/src/i18n/i18n.d.ts +0 -7
  173. package/dist/src/i18n/locales/el-gr.d.ts +0 -2
  174. package/dist/src/i18n/locales/es-es.d.ts +0 -2
  175. package/dist/src/i18n/locales/et-ee.d.ts +0 -2
  176. package/dist/src/i18n/locales/fi-fi.d.ts +0 -2
  177. package/dist/src/i18n/locales/fr-fr.d.ts +0 -2
  178. package/dist/src/i18n/locales/ga-ie.d.ts +0 -2
  179. package/dist/src/i18n/locales/hr-hr.d.ts +0 -2
  180. package/dist/src/i18n/locales/hu-hu.d.ts +0 -2
  181. package/dist/src/i18n/locales/it-it.d.ts +0 -2
  182. package/dist/src/i18n/locales/lt-lt.d.ts +0 -2
  183. package/dist/src/i18n/locales/lv-lv.d.ts +0 -2
  184. package/dist/src/i18n/locales/mt-mt.d.ts +0 -2
  185. package/dist/src/i18n/locales/nl-nl.d.ts +0 -2
  186. package/dist/src/i18n/locales/no-no.d.ts +0 -2
  187. package/dist/src/i18n/locales/pl-pl.d.ts +0 -2
  188. package/dist/src/i18n/locales/pt-pt.d.ts +0 -2
  189. package/dist/src/i18n/locales/ro-ro.d.ts +0 -2
  190. package/dist/src/i18n/locales/sk-sk.d.ts +0 -2
  191. package/dist/src/i18n/locales/sl-si.d.ts +0 -2
  192. package/dist/src/i18n/locales/sv-se.d.ts +0 -2
  193. package/dist/src/lookups/caProvinceOptions.d.ts +0 -4
  194. package/dist/src/lookups/monthOptions.d.ts +0 -4
  195. package/dist/src/lookups/usStateOptions.d.ts +0 -4
  196. package/dist/src/types/AccountType.d.ts +0 -6
  197. package/dist/src/types/CaProvinceCode.d.ts +0 -1
  198. package/dist/src/types/CountryCode.d.ts +0 -3
  199. package/dist/src/types/MonthCode.d.ts +0 -1
  200. package/dist/src/types/TaxForm.d.ts +0 -1
  201. package/dist/src/types/UsStateCode.d.ts +0 -1
  202. package/dist/src/types/client/ClientTaxDocumentation.d.ts +0 -84
  203. package/dist/src/types/server/ComprehensiveTaxDocumentation.d.ts +0 -84
  204. package/dist/src/ui/MaskedInput/index.d.ts +0 -1
  205. package/dist/src/ui/Password/Password.d.ts +0 -12
  206. package/dist/src/ui/Password/index.d.ts +0 -1
  207. package/dist/src/utils/date.d.ts +0 -4
  208. package/dist/src/utils/getHintKeyMap.d.ts +0 -113
  209. package/dist/src/utils/getVerboseDate.d.ts +0 -1
  210. package/dist/src/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +0 -4
  211. package/dist/src/widgets/TaxBitForm/TaxBitForm.d.ts +0 -5
  212. package/dist/src/widgets/TaxBitForm/index.d.ts +0 -2
  213. package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +0 -22
  214. package/dist/src/wizard/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +0 -2
  215. package/dist/src/wizard/PlaceOfBirthInput/index.d.ts +0 -1
  216. package/dist/src/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +0 -11
  217. package/dist/src/wizard/RowInput/MaskedInputRow/index.d.ts +0 -1
  218. package/dist/src/wizard/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -1
  219. package/dist/src/wizard/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -1
  220. package/dist/src/wizard/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -1
  221. package/dist/src/wizard/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -1
  222. package/dist/src/wizard/TaxBitFormUI/AppError/index.d.ts +0 -1
  223. package/dist/src/wizard/TaxBitFormUI/Exemptions/index.d.ts +0 -1
  224. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -2
  225. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -1
  226. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -1
  227. package/dist/src/wizard/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -1
  228. package/dist/src/wizard/TaxBitFormUI/Summary/index.d.ts +0 -1
  229. package/dist/src/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -4
  230. package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +0 -6
  231. package/dist/src/wizard/TaxBitFormUI/index.d.ts +0 -2
  232. /package/dist/src/contexts/{FormUI → QuestionnaireUI}/shiftResidence.d.ts +0 -0
  233. /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitDAC7Form.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts} +0 -0
  234. /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.complete.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts} +0 -0
  235. /package/dist/src/widgets/{TaxBitForm/__tests__/TaxBitForm.loaded.test.d.ts → TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts} +0 -0
  236. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
  237. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderContact/AccountHolderContact.d.ts +0 -0
  238. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTax/AccountHolderTax.d.ts +0 -0
  239. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
  240. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/AppError/AppError.d.ts +0 -0
  241. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/Confirmation.d.ts +0 -0
  242. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Confirmation/index.d.ts +0 -0
  243. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Exemptions/Exemptions.d.ts +0 -0
  244. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
  245. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
  246. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Recap.d.ts +0 -0
  247. /package/dist/src/wizard/{TaxBitFormUI → TaxbitQuestionnaireUI}/Summary/Summary.d.ts +0 -0
  248. /package/dist/src/{widgets/TaxBitForm/__tests__/TaxBitForm.loading.test.d.ts → wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts} +0 -0
  249. /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitDAC7FormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts} +0 -0
  250. /package/dist/src/wizard/{TaxBitFormUI/__tests__/TaxBitFormUI.test.d.ts → TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts} +0 -0
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@taxbit/react-sdk",
3
- "version": "0.6.1",
4
- "description": "TaxBit Tax Documentation",
5
- "author": "TaxBit",
3
+ "version": "1.0.0-beta.0",
4
+ "description": "Taxbit Tax Documentation",
5
+ "author": "Taxbit",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
@@ -34,25 +34,19 @@
34
34
  "test": "vitest"
35
35
  },
36
36
  "dependencies": {
37
- "react": "^16.0.0 || ^17.0.0 || ^18.0.0"
37
+ "@taxbit/utilities": "0.1.0"
38
+ },
39
+ "peerDependencies": {
40
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
41
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
38
42
  },
39
43
  "devDependencies": {
40
- "@types/react": "^18.0.0",
41
- "@testing-library/react": "^14.0.0",
42
- "@testing-library/jest-dom": "^6.1.4",
43
- "@types/node": "^18.17.0",
44
- "@typescript-eslint/eslint-plugin": "^6.0.0",
45
- "@typescript-eslint/parser": "^6.0.0",
46
- "@vitejs/plugin-react": "^4.0.3",
47
- "eslint": "^8.45.0",
48
- "eslint-plugin-import": "^2.25.3",
49
- "eslint-plugin-react-hooks": "^4.6.0",
50
- "eslint-plugin-react-refresh": "^0.4.3",
44
+ "@testing-library/react": "^14.3.1",
45
+ "@testing-library/jest-dom": "^6.5.0",
46
+ "@testing-library/user-event": "^14.5.2",
51
47
  "happy-dom": "^12.9.1",
52
48
  "react": "^18.0.0",
53
- "typescript": "^5.0.2",
54
- "vite": "^4.4.5",
55
- "vite-plugin-dts": "^3.3.1",
56
- "vite-tsconfig-paths": "^3.4.0"
49
+ "react-dom": "^18.0.0",
50
+ "@types/react": "^18.0.0"
57
51
  }
58
52
  }
package/style/basic.css CHANGED
@@ -29,18 +29,25 @@ button.taxbit-button:focus-visible {
29
29
  align-items: center;
30
30
  padding-bottom: 8px;
31
31
  border-bottom: solid 1px #e4ebf6;
32
- margin-bottom: 20px;
32
+ margin-bottom: 12px;
33
33
  }
34
34
 
35
35
  .taxbit-page-title {
36
36
  margin: 0;
37
37
  font-size: 1.2em;
38
- line-height: 1.1;
38
+ line-height: 1.25em;
39
39
  font-weight: 600;
40
40
  color: #12263f;
41
41
  flex: 1 1 auto;
42
42
  }
43
43
 
44
+ .taxbit-page-sub-title {
45
+ font-size: 0.8em;
46
+ opacity: 0.7;
47
+ font-weight: 400;
48
+ line-height: 1.25em;
49
+ }
50
+
44
51
  .taxbit-section {
45
52
  margin: 20px 0;
46
53
  .taxbit-section-header {
@@ -53,9 +60,9 @@ button.taxbit-button:focus-visible {
53
60
  .taxbit-section-header-title {
54
61
  opacity: 0.8;
55
62
  }
56
- .taxbit-section-sub-title {
57
- font-size: 0.8em;
58
- opacity: 0.7;
63
+ .taxbit-section-header-sub-title {
64
+ font-size: 0.9em;
65
+ opacity: 0.8;
59
66
  font-weight: 400;
60
67
  }
61
68
  .taxbit-section-header-action {
@@ -67,7 +74,6 @@ button.taxbit-button:focus-visible {
67
74
  border: 0;
68
75
  outline: none;
69
76
  opacity: 0.6;
70
- width: 170px;
71
77
  }
72
78
 
73
79
  .taxbit-select-language:focus {
@@ -76,7 +82,7 @@ button.taxbit-button:focus-visible {
76
82
  }
77
83
 
78
84
  .taxbit-row {
79
- margin-bottom: 10px;
85
+ margin-bottom: 20px;
80
86
  align-items: flex-start;
81
87
  display: flex;
82
88
  flex-direction: column;
@@ -94,16 +100,13 @@ button.taxbit-button:focus-visible {
94
100
  .taxbit-error-message {
95
101
  color: red;
96
102
  font-size: 0.8em;
97
- }
98
- .taxbit-hint {
99
- font-size: 0.8em;
100
- opacity: 0.7;
103
+ line-height: 1.2em;
101
104
  }
102
105
 
103
106
  .taxbit-row-actions {
104
107
  flex: 0 0 10%;
105
108
  display: flex;
106
- align-items: center;
109
+ align-items: flex-start;
107
110
  }
108
111
  .taxbit-row-action-button {
109
112
  font-size: 0.8em;
@@ -120,6 +123,10 @@ button.taxbit-button:focus-visible {
120
123
  font-weight: 400;
121
124
  line-height: 1.25em;
122
125
  }
126
+ .taxbit-sub-label p {
127
+ margin: 0;
128
+ margin-bottom: 5px;
129
+ }
123
130
  }
124
131
  .taxbit-input,
125
132
  .taxbit-select {
@@ -156,7 +163,19 @@ button.taxbit-button:focus-visible {
156
163
  flex-direction: column;
157
164
  .taxbit-radio-button {
158
165
  display: flex;
159
- align-items: center;
166
+ align-items: start;
167
+ }
168
+ .taxbit-radio-button input {
169
+ margin-top: 6px;
170
+ }
171
+ }
172
+
173
+ .taxbit-radio-button-option {
174
+ .taxbit-radio-button-sub-option {
175
+ font-size: 0.8em;
176
+ opacity: 0.7;
177
+ font-weight: 400;
178
+ line-height: 1.25em;
160
179
  }
161
180
  }
162
181
 
package/style/inline.css CHANGED
@@ -18,6 +18,15 @@ button.taxbit-button:focus-visible {
18
18
  padding: 12px;
19
19
  }
20
20
 
21
+ .taxbit-radio-button-option {
22
+ .taxbit-radio-button-sub-option {
23
+ font-size: 0.8em;
24
+ opacity: 0.7;
25
+ font-weight: 400;
26
+ line-height: 1.25em;
27
+ }
28
+ }
29
+
21
30
  .taxbit-progress-status {
22
31
  font-size: 0.8em;
23
32
  font-weight: normal;
@@ -29,18 +38,25 @@ button.taxbit-button:focus-visible {
29
38
  align-items: center;
30
39
  padding-bottom: 8px;
31
40
  border-bottom: solid 1px #e4ebf6;
32
- margin-bottom: 20px;
41
+ margin-bottom: 12px;
33
42
  }
34
43
 
35
44
  .taxbit-page-title {
36
45
  margin: 0;
37
46
  font-size: 1.2em;
38
- line-height: 1.1;
47
+ line-height: 1.25em;
39
48
  font-weight: 600;
40
49
  color: #12263f;
41
50
  flex: 1 1 auto;
42
51
  }
43
52
 
53
+ .taxbit-page-sub-title {
54
+ font-size: 0.8em;
55
+ opacity: 0.7;
56
+ font-weight: 400;
57
+ line-height: 1.25em;
58
+ }
59
+
44
60
  .taxbit-section {
45
61
  margin: 20px 0;
46
62
  .taxbit-section-header {
@@ -53,9 +69,9 @@ button.taxbit-button:focus-visible {
53
69
  .taxbit-section-header-title {
54
70
  opacity: 0.8;
55
71
  }
56
- .taxbit-section-sub-title {
57
- font-size: 0.8em;
58
- opacity: 0.7;
72
+ .taxbit-section-header-sub-title {
73
+ font-size: 0.9em;
74
+ opacity: 0.8;
59
75
  font-weight: 400;
60
76
  }
61
77
  .taxbit-section-header-action {
@@ -64,7 +80,7 @@ button.taxbit-button:focus-visible {
64
80
  }
65
81
 
66
82
  .taxbit-row {
67
- margin-bottom: 10px;
83
+ margin-bottom: 20px;
68
84
  align-items: flex-start;
69
85
  display: flex;
70
86
  flex-direction: row;
@@ -82,16 +98,13 @@ button.taxbit-button:focus-visible {
82
98
  .taxbit-error-message {
83
99
  color: red;
84
100
  font-size: 0.8em;
85
- }
86
- .taxbit-hint {
87
- font-size: 0.8em;
88
- opacity: 0.7;
101
+ line-height: 1.2em;
89
102
  }
90
103
 
91
104
  .taxbit-row-actions {
92
105
  flex: 0 0 10%;
93
106
  display: flex;
94
- align-items: center;
107
+ align-items: flex-start;
95
108
  }
96
109
  .taxbit-row-action-button {
97
110
  font-size: 0.8em;
@@ -102,7 +115,6 @@ button.taxbit-button:focus-visible {
102
115
  border: 0;
103
116
  outline: none;
104
117
  opacity: 0.6;
105
- width: 170px;
106
118
  }
107
119
 
108
120
  .taxbit-select-language:focus {
@@ -119,6 +131,10 @@ button.taxbit-button:focus-visible {
119
131
  font-weight: 400;
120
132
  line-height: 1.25em;
121
133
  }
134
+ .taxbit-sub-label p {
135
+ margin: 0;
136
+ margin-bottom: 5px;
137
+ }
122
138
  }
123
139
  .taxbit-input,
124
140
  .taxbit-select {
@@ -147,7 +163,10 @@ button.taxbit-button:focus-visible {
147
163
  flex-direction: column;
148
164
  .taxbit-radio-button {
149
165
  display: flex;
150
- align-items: center;
166
+ align-items: start;
167
+ }
168
+ .taxbit-radio-button input {
169
+ margin-top: 6px;
151
170
  }
152
171
  }
153
172
 
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- type FormUIProviderProps = {
3
- children: React.ReactNode;
4
- };
5
- export declare const FormUIProvider: ({ children }: FormUIProviderProps) => React.JSX.Element;
6
- export {};
@@ -1,20 +0,0 @@
1
- import { ButtonKey, ErrorKey, HintKey, PromptKey, SubPromptKey, SubTitleKey, TextKey } from '../../i18n/types';
2
- import { Locale, TaxDocumentation, TaxDocumentationKey } from '../../types';
3
- export declare const getLocal: (fields: TaxDocumentation, language: Locale) => {
4
- getLocalHint: (key: TaxDocumentationKey) => string | undefined;
5
- getLocalText: (key: TextKey) => string;
6
- getLocalTitle: (key: string) => string;
7
- getLocalSubTitle: (key: SubTitleKey) => string;
8
- getLocalError: (key: ErrorKey) => string;
9
- getLocalButton: (key: ButtonKey) => string;
10
- getLocalPrompt: (key: string) => string;
11
- getLocalSubPrompt: (key: TaxDocumentationKey) => string;
12
- getLocalOption: (key: string | undefined) => string | undefined;
13
- getLocalCountry: (key: string | undefined) => string;
14
- getLocalUsState: (key: string | undefined) => string;
15
- getLocalCaProvince: (key: string | undefined) => string;
16
- getLocalMonth: (key: string | undefined) => string;
17
- getHintKey: (key: TaxDocumentationKey) => HintKey;
18
- getPromptKey: (key: string) => PromptKey;
19
- getSubPromptKey: (key: TaxDocumentationKey) => SubPromptKey;
20
- };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { UseTaxDocumentationProps } from './useTaxDocumentation';
3
- type TaxDocumentationProviderProps = UseTaxDocumentationProps & {
4
- children: React.ReactNode;
5
- };
6
- export declare const TaxBitFormProvider: ({ data, externalValidations, onSubmit, onProgress, language, taxForms, step, children, config, }: TaxDocumentationProviderProps) => React.JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- import { ClientTaxDocumentation } from '../../../types/client';
2
- export declare const clientTaxDocumentation: ClientTaxDocumentation;
@@ -1 +0,0 @@
1
- export * from "./useTaxBit";
@@ -1,7 +0,0 @@
1
- import type { ClientTaxDocumentation, ClientTaxDocumentationStatus } from '../../types/client';
2
- export declare const useTaxBit: (bearerToken: string, staging?: true) => {
3
- postData: (data: ClientTaxDocumentation) => Promise<Response>;
4
- status: ClientTaxDocumentationStatus | undefined;
5
- formSubmitted: boolean;
6
- serverData: ClientTaxDocumentation | undefined;
7
- };
@@ -1,7 +0,0 @@
1
- import type { Locale } from "types";
2
- import type { PropertyFile } from "./types/PropertyFile";
3
- type LocalizationFile = {
4
- [locale in Locale]: PropertyFile;
5
- };
6
- export declare const i18n: LocalizationFile;
7
- export {};
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const elGr: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const esEs: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const etEe: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const fiFi: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const frFr: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const gaIe: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const hrHr: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const huHu: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const itIt: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const ltLt: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const lvLv: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const mtMt: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const nlNl: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const noNo: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const plPl: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const ptPt: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const roRo: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const skSk: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const slSi: PropertyFile;
@@ -1,2 +0,0 @@
1
- import { PropertyFile } from '../types/PropertyFile';
2
- export declare const svSe: PropertyFile;
@@ -1,4 +0,0 @@
1
- import { CaProvinceCode } from "types/CaProvinceCode";
2
- export declare const caProvinceOptions: {
3
- value: CaProvinceCode;
4
- }[];
@@ -1,4 +0,0 @@
1
- import { MonthCode } from "types/MonthCode";
2
- export declare const monthOptions: {
3
- value: MonthCode;
4
- }[];
@@ -1,4 +0,0 @@
1
- import { UsStateCode } from "types/UsStateCode";
2
- export declare const usStateOptions: {
3
- value: UsStateCode;
4
- }[];
@@ -1,6 +0,0 @@
1
- import { usAccountHolderAccountTypeOptions, usLlcAccountTypeOptions, foreignAccountHolderAccountTypeOptions, foreignTrustClassificationOptions, foreignOtherClassificationOptions } from "lookups";
2
- export type UsAccountType = (typeof usAccountHolderAccountTypeOptions)[number]["value"];
3
- export type UsLlcAccountType = (typeof usLlcAccountTypeOptions)[number]["value"];
4
- export type ForeignAccountType = (typeof foreignAccountHolderAccountTypeOptions)[number]["value"];
5
- export type ForeignTrustAccountType = (typeof foreignTrustClassificationOptions)[number]["value"];
6
- export type ForeignOtherAccountType = (typeof foreignOtherClassificationOptions)[number]["value"];
@@ -1 +0,0 @@
1
- export type CaProvinceCode = "AB" | "BC" | "MB" | "NB" | "NL" | "NT" | "NS" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT";
@@ -1,3 +0,0 @@
1
- import type { Extends } from './Utilities';
2
- export type CountryCode = 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
3
- export type EUCountryCode = Extends<CountryCode, 'AT' | 'BE' | 'BG' | 'CY' | 'CZ' | 'DE' | 'DK' | 'EE' | 'ES' | 'FI' | 'FR' | 'GR' | 'HR' | 'HU' | 'IE' | 'IT' | 'LT' | 'LU' | 'LV' | 'MT' | 'NL' | 'PL' | 'PT' | 'RO' | 'SE' | 'SI' | 'SK'>;
@@ -1 +0,0 @@
1
- export type MonthCode = "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12";
@@ -1 +0,0 @@
1
- export type TaxForm = "W-9" | "W-8BEN" | "W-8BEN-E" | "DAC7";
@@ -1 +0,0 @@
1
- export type UsStateCode = "AL" | "AK" | "AS" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" | "DC" | "FM" | "FL" | "GA" | "GU" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MH" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "MP" | "OH" | "OK" | "OR" | "UM" | "PW" | "PA" | "PR" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VI" | "VA" | "WA" | "WV" | "WI" | "WY";
@@ -1,84 +0,0 @@
1
- type ClientAddress = {
2
- city?: string;
3
- country?: string;
4
- stateOrProvince?: string;
5
- firstLine?: string;
6
- secondLine?: string;
7
- postalCode?: string;
8
- };
9
- type ClientTaxResidence = {
10
- country?: string;
11
- tin?: string;
12
- tinNotRequired?: boolean;
13
- };
14
- type ClientAccountHolderTaxDocumentation = {
15
- address?: ClientAddress;
16
- countryOfCitizenship?: string;
17
- dateOfBirth?: string;
18
- dbaName?: string;
19
- mailingAddress?: ClientAddress;
20
- mailingAddressIsDifferent?: boolean;
21
- name?: string;
22
- cityOfBirth?: string;
23
- countryOfBirth?: string;
24
- financialAccountIdentifier?: string;
25
- financialAccountName?: string;
26
- ftin?: string;
27
- ftinNotLegallyRequired?: boolean;
28
- taxResidences?: Array<ClientTaxResidence>;
29
- tin?: string;
30
- vatin?: string;
31
- vatinCountry?: string;
32
- vatinNotRequired?: boolean;
33
- businessRegistrationNumber?: string;
34
- businessRegistrationCountry?: string;
35
- exemptFatcaCode?: string;
36
- exemptPayeeCode?: string;
37
- isIndividual?: boolean;
38
- isEuResident?: boolean;
39
- isUsPerson?: boolean;
40
- usAccountType?: string;
41
- usSmllcElection?: boolean;
42
- usLlcClassification?: string;
43
- usOtherClassification?: string;
44
- usTrustEstateEin?: boolean;
45
- foreignAccountType?: string;
46
- foreignTrustClassification?: string;
47
- foreignOtherClassification?: string;
48
- };
49
- type ClientRegardedOwnerTaxDocumentation = {
50
- address?: ClientAddress;
51
- countryOfCitizenship?: string;
52
- dateOfBirth?: string;
53
- dbaName?: string;
54
- mailingAddress?: ClientAddress;
55
- mailingAddressIsDifferent?: boolean;
56
- name?: string;
57
- ftin?: string;
58
- ftinNotLegallyRequired?: boolean;
59
- tin?: string;
60
- exemptFatcaCode?: string;
61
- exemptPayeeCode?: string;
62
- isUsPerson?: boolean;
63
- usAccountType?: string;
64
- usLlcClassification?: string;
65
- usOtherClassification?: string;
66
- usTrustEstateEin?: boolean;
67
- foreignAccountType?: string;
68
- foreignTrustClassification?: string;
69
- foreignOtherClassification?: string;
70
- };
71
- export type ClientTaxDocumentation = {
72
- accountHolder?: ClientAccountHolderTaxDocumentation;
73
- } & {
74
- regardedOwner?: ClientRegardedOwnerTaxDocumentation;
75
- } & {
76
- hasCertified?: boolean;
77
- isNotSubjectBackupWithholding?: boolean;
78
- isConfirmedCorrectComplete?: boolean;
79
- signature?: string;
80
- documentType?: 'COMPREHENSIVE';
81
- source?: string;
82
- signatureDate?: string;
83
- };
84
- export {};
@@ -1,84 +0,0 @@
1
- export type Address = {
2
- city?: string;
3
- country?: string;
4
- state_or_province?: string;
5
- first_line?: string;
6
- second_line?: string;
7
- postal_code?: string;
8
- };
9
- export type AccountHolderTaxDocumentation = {
10
- address?: Address;
11
- country_of_citizenship?: string;
12
- date_of_birth?: string;
13
- dba_name?: string;
14
- mailing_address?: Address;
15
- mailing_address_is_different?: boolean;
16
- name?: string;
17
- city_of_birth?: string;
18
- country_of_birth?: string;
19
- financial_account_identifier?: string;
20
- financial_account_name?: string;
21
- ftin?: string;
22
- ftin_not_legally_required?: boolean;
23
- tax_residences?: Array<{
24
- country?: string;
25
- tin?: string;
26
- tin_not_required?: boolean;
27
- }>;
28
- tin?: string;
29
- vatin?: string;
30
- vatin_country?: string;
31
- vatin_not_required?: boolean;
32
- business_registration_number?: string;
33
- business_registration_country?: string;
34
- exempt_fatca_code?: string;
35
- exempt_payee_code?: string;
36
- is_individual?: boolean;
37
- is_eu_resident?: boolean;
38
- is_us_person?: boolean;
39
- us_account_type?: string;
40
- us_smllc_election?: boolean;
41
- us_llc_classification?: string;
42
- us_other_classification?: string;
43
- us_trust_estate_ein?: boolean;
44
- foreign_account_type?: string;
45
- foreign_trust_classification?: string;
46
- foreign_other_classification?: string;
47
- };
48
- export type RegardedOwnerTaxDocumentation = {
49
- address?: Address;
50
- country_of_citizenship?: string;
51
- date_of_birth?: string;
52
- dba_name?: string;
53
- mailing_address?: Address;
54
- mailing_address_is_different?: boolean;
55
- name?: string;
56
- ftin?: string;
57
- ftin_not_legally_required?: boolean;
58
- tin?: string;
59
- exempt_fatca_code?: string;
60
- exempt_payee_code?: string;
61
- is_us_person?: boolean;
62
- us_account_type?: string;
63
- us_llc_classification?: string;
64
- us_other_classification?: string;
65
- us_trust_estate_ein?: boolean;
66
- foreign_account_type?: string;
67
- foreign_trust_classification?: string;
68
- foreign_other_classification?: string;
69
- };
70
- export type SignedComprehensiveTaxDocumentation = {
71
- account_holder?: AccountHolderTaxDocumentation;
72
- } & {
73
- regarded_owner?: RegardedOwnerTaxDocumentation;
74
- } & {
75
- has_certified?: boolean;
76
- is_not_subject_backup_withholding?: boolean;
77
- is_confirmed_correct_complete?: boolean;
78
- signature?: string;
79
- document_type?: 'COMPREHENSIVE';
80
- source?: string;
81
- };
82
- export type SignedDatedComprehensiveTaxDocumentation = SignedComprehensiveTaxDocumentation & {
83
- signature_date?: string;
84
- };
@@ -1 +0,0 @@
1
- export * from "./MaskedInput.tsx";
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- type PasswordProps = {
3
- value?: string;
4
- name?: string;
5
- mask?: string;
6
- onChange?: (val: string) => void;
7
- show?: boolean;
8
- className?: string;
9
- disabled?: boolean;
10
- };
11
- export declare const Password: ({ value, mask, name, onChange, disabled, show, ...inputProps }: PasswordProps) => React.JSX.Element;
12
- export {};
@@ -1 +0,0 @@
1
- export * from "./Password";