@taxbit/react-sdk 0.2.4 → 0.3.1

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 (252) hide show
  1. package/README.md +36 -7
  2. package/dist/basic.css +26 -20
  3. package/dist/index.d.ts +1 -1
  4. package/dist/inline.css +26 -21
  5. package/dist/src/contexts/FormUI/shiftResidence.d.ts +2 -0
  6. package/dist/{contexts → src/contexts}/FormUI/useFormUI.d.ts +4 -4
  7. package/dist/{contexts → src/contexts}/FormUI/useFormUIContext.d.ts +20 -20
  8. package/dist/{contexts → src/contexts}/TaxDocumentation/useTaxDocumentation.d.ts +1 -1
  9. package/dist/{contexts → src/contexts}/TaxDocumentation/useTaxDocumentationContext.d.ts +2 -2
  10. package/dist/src/hooks/useTaxBit/__tests__/clientTaxDocumentation.d.ts +2 -0
  11. package/dist/src/hooks/useTaxBit/__tests__/serverTaxDocumentation.d.ts +2 -0
  12. package/dist/{i18n → src/i18n}/index.d.ts +1 -1
  13. package/dist/src/i18n/types/LocalizationKey.d.ts +10 -0
  14. package/dist/{i18n → src/i18n}/types/PropertyFile.d.ts +6 -6
  15. package/dist/{i18n → src/i18n}/utils/getText.d.ts +6 -6
  16. package/dist/{lookups → src/lookups}/countryOptions.d.ts +2 -1
  17. package/dist/{lookups → src/lookups}/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
  18. package/dist/{lookups → src/lookups}/foreignOtherClassificationOptions.d.ts +1 -1
  19. package/dist/{lookups → src/lookups}/usAccountHolderAccountTypeOptions.d.ts +1 -1
  20. package/dist/{types → src/types}/CamelCaseKeys.d.ts +1 -2
  21. package/dist/{types → src/types}/TaxDocumentation.d.ts +5 -2
  22. package/dist/{types → src/types}/client/ClientTaxDocumentation.d.ts +19 -15
  23. package/dist/{types → src/types}/server/ComprehensiveTaxDocumentation.d.ts +4 -1
  24. package/dist/{ui → src/ui}/Actions/Actions.d.ts +1 -1
  25. package/dist/{ui → src/ui}/CheckBox/CheckBox.d.ts +4 -3
  26. package/dist/{ui → src/ui}/MaskedContent/MaskedContent.d.ts +1 -1
  27. package/dist/{ui → src/ui}/MaskedInput/MaskedInput.d.ts +4 -3
  28. package/dist/{ui → src/ui}/Password/Password.d.ts +2 -1
  29. package/dist/{ui → src/ui}/Select/Select.d.ts +9 -8
  30. package/dist/src/utils/camelCaseKeys.d.ts +2 -0
  31. package/dist/{utils → src/utils}/getFieldsState.d.ts +3 -2
  32. package/dist/{utils → src/utils}/getHintKeyMap.d.ts +5 -2
  33. package/dist/{utils → src/utils}/getPromptKeyMap.d.ts +5 -2
  34. package/dist/{utils → src/utils}/index.d.ts +0 -1
  35. package/dist/{utils/transformOutbound → src/utils/transformForClient}/convertYesNoToBoolean.d.ts +1 -1
  36. package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +54 -0
  37. package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +33 -0
  38. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +37 -0
  39. package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +6 -0
  40. package/dist/{validations → src/validations}/getSupportedFields.d.ts +1 -1
  41. package/dist/src/validations/getVisibleFields.d.ts +3 -0
  42. package/dist/{validations → src/validations}/index.d.ts +0 -1
  43. package/dist/{wizard → src/wizard}/ResidenceInput/ResidenceInput.d.ts +2 -1
  44. package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +7 -0
  45. package/dist/{wizard → src/wizard}/RowInput/MaskedInputRow/MaskedInputRow.d.ts +4 -3
  46. package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +10 -0
  47. package/dist/src/wizard/TaxBitFormUI/__tests__/TaxBitFormUI.test.d.ts +0 -0
  48. package/dist/src/wizard/TaxBitFormUI/steps.d.ts +9 -0
  49. package/dist/taxbit-react-sdk.js +2240 -2037
  50. package/dist/taxbit-react-sdk.umd.cjs +10 -10
  51. package/package.json +3 -4
  52. package/dist/i18n/types/LocalizationKey.d.ts +0 -10
  53. package/dist/utils/camelCaseKeys.d.ts +0 -1
  54. package/dist/utils/transformOutbound/index.d.ts +0 -6
  55. package/dist/utils/transformOutbound/transformOutbound.d.ts +0 -3
  56. package/dist/utils/transformOutbound/transformToOutboundAccoutHolder.d.ts +0 -3
  57. package/dist/utils/transformOutbound/transformToOutboundAddress.d.ts +0 -6
  58. package/dist/utils/transformOutbound/transformToOutboundRegardedOwner.d.ts +0 -3
  59. package/dist/utils/transformOutbound/transformToOutboundTaxResidenceFields.d.ts +0 -3
  60. package/dist/validations/getSubmittableFields.d.ts +0 -3
  61. package/dist/validations/getVisibleFields.d.ts +0 -3
  62. package/dist/wizard/RowInput/ErrorRow/ErrorRow.d.ts +0 -6
  63. package/dist/wizard/RowInput/SelectRow/SelectRow.d.ts +0 -9
  64. package/dist/wizard/TaxBitFormUI/steps.d.ts +0 -8
  65. /package/dist/{App.d.ts → src/App.d.ts} +0 -0
  66. /package/dist/{components → src/components}/Address/Address.d.ts +0 -0
  67. /package/dist/{components → src/components}/Address/index.d.ts +0 -0
  68. /package/dist/{components → src/components}/ErrorMessage/ErrorMessage.d.ts +0 -0
  69. /package/dist/{components → src/components}/ErrorMessage/index.d.ts +0 -0
  70. /package/dist/{components → src/components}/Form/Form.d.ts +0 -0
  71. /package/dist/{components → src/components}/Form/index.d.ts +0 -0
  72. /package/dist/{components → src/components}/InputStatus/InputStatus.d.ts +0 -0
  73. /package/dist/{components → src/components}/InputStatus/index.d.ts +0 -0
  74. /package/dist/{components → src/components}/Notification/Notification.d.ts +0 -0
  75. /package/dist/{components → src/components}/Notification/index.d.ts +0 -0
  76. /package/dist/{components → src/components}/Row/Row.d.ts +0 -0
  77. /package/dist/{components → src/components}/Row/index.d.ts +0 -0
  78. /package/dist/{components → src/components}/Section/Section.d.ts +0 -0
  79. /package/dist/{components → src/components}/Section/index.d.ts +0 -0
  80. /package/dist/{components → src/components}/index.d.ts +0 -0
  81. /package/dist/{contexts → src/contexts}/FormUI/FormUIProvider.d.ts +0 -0
  82. /package/dist/{contexts → src/contexts}/FormUI/index.d.ts +0 -0
  83. /package/dist/{contexts → src/contexts}/TaxDocumentation/TaxBitFormProvider.d.ts +0 -0
  84. /package/dist/{contexts → src/contexts}/TaxDocumentation/index.d.ts +0 -0
  85. /package/dist/{contexts → src/contexts}/createCtx.d.ts +0 -0
  86. /package/dist/{contexts → src/contexts}/index.d.ts +0 -0
  87. /package/dist/{entry → src/entry}/index.d.ts +0 -0
  88. /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
  89. /package/dist/{hooks → src/hooks}/useTaxBit/index.d.ts +0 -0
  90. /package/dist/{hooks → src/hooks}/useTaxBit/useTaxBit.d.ts +0 -0
  91. /package/dist/{i18n → src/i18n}/i18n.d.ts +0 -0
  92. /package/dist/{i18n → src/i18n}/locales/bg-bg.d.ts +0 -0
  93. /package/dist/{i18n → src/i18n}/locales/cs-cz.d.ts +0 -0
  94. /package/dist/{i18n → src/i18n}/locales/da-dk.d.ts +0 -0
  95. /package/dist/{i18n → src/i18n}/locales/de-at.d.ts +0 -0
  96. /package/dist/{i18n → src/i18n}/locales/de-de.d.ts +0 -0
  97. /package/dist/{i18n → src/i18n}/locales/el-cy.d.ts +0 -0
  98. /package/dist/{i18n → src/i18n}/locales/el-gr.d.ts +0 -0
  99. /package/dist/{i18n → src/i18n}/locales/en-gb.d.ts +0 -0
  100. /package/dist/{i18n → src/i18n}/locales/en-us.d.ts +0 -0
  101. /package/dist/{i18n → src/i18n}/locales/es-es.d.ts +0 -0
  102. /package/dist/{i18n → src/i18n}/locales/et-ee.d.ts +0 -0
  103. /package/dist/{i18n → src/i18n}/locales/fi-fi.d.ts +0 -0
  104. /package/dist/{i18n → src/i18n}/locales/fr-fr.d.ts +0 -0
  105. /package/dist/{i18n → src/i18n}/locales/fr-lu.d.ts +0 -0
  106. /package/dist/{i18n → src/i18n}/locales/ga-ie.d.ts +0 -0
  107. /package/dist/{i18n → src/i18n}/locales/hr-hr.d.ts +0 -0
  108. /package/dist/{i18n → src/i18n}/locales/hu-hu.d.ts +0 -0
  109. /package/dist/{i18n → src/i18n}/locales/index.d.ts +0 -0
  110. /package/dist/{i18n → src/i18n}/locales/it-it.d.ts +0 -0
  111. /package/dist/{i18n → src/i18n}/locales/lt-lt.d.ts +0 -0
  112. /package/dist/{i18n → src/i18n}/locales/lv-lv.d.ts +0 -0
  113. /package/dist/{i18n → src/i18n}/locales/mt-mt.d.ts +0 -0
  114. /package/dist/{i18n → src/i18n}/locales/nl-be.d.ts +0 -0
  115. /package/dist/{i18n → src/i18n}/locales/nl-nl.d.ts +0 -0
  116. /package/dist/{i18n → src/i18n}/locales/no-no.d.ts +0 -0
  117. /package/dist/{i18n → src/i18n}/locales/pl-pl.d.ts +0 -0
  118. /package/dist/{i18n → src/i18n}/locales/pt-pt.d.ts +0 -0
  119. /package/dist/{i18n → src/i18n}/locales/ro-ro.d.ts +0 -0
  120. /package/dist/{i18n → src/i18n}/locales/sk-sk.d.ts +0 -0
  121. /package/dist/{i18n → src/i18n}/locales/sl-si.d.ts +0 -0
  122. /package/dist/{i18n → src/i18n}/locales/sv-se.d.ts +0 -0
  123. /package/dist/{i18n → src/i18n}/types/index.d.ts +0 -0
  124. /package/dist/{i18n → src/i18n}/utils/index.d.ts +0 -0
  125. /package/dist/{lookups → src/lookups}/caProvinceOptions.d.ts +0 -0
  126. /package/dist/{lookups → src/lookups}/dayOptions.d.ts +0 -0
  127. /package/dist/{lookups → src/lookups}/fatcaCodeOptions.d.ts +0 -0
  128. /package/dist/{lookups → src/lookups}/foreignRegardedOwnerAccountTypeOptions.d.ts +0 -0
  129. /package/dist/{lookups → src/lookups}/foreignTrustClassificationOptions.d.ts +0 -0
  130. /package/dist/{lookups → src/lookups}/index.d.ts +0 -0
  131. /package/dist/{lookups → src/lookups}/localeOptions.d.ts +0 -0
  132. /package/dist/{lookups → src/lookups}/monthOptions.d.ts +0 -0
  133. /package/dist/{lookups → src/lookups}/payeeCodeOptions.d.ts +0 -0
  134. /package/dist/{lookups → src/lookups}/toOptions.d.ts +0 -0
  135. /package/dist/{lookups → src/lookups}/usLlcAccountTypeOptions.d.ts +0 -0
  136. /package/dist/{lookups → src/lookups}/usRegardedOwnerAccountTypeOptions.d.ts +0 -0
  137. /package/dist/{lookups → src/lookups}/usStateOptions.d.ts +0 -0
  138. /package/dist/{lookups → src/lookups}/yearOptions.d.ts +0 -0
  139. /package/dist/{main.d.ts → src/main.d.ts} +0 -0
  140. /package/dist/{services → src/services}/api.d.ts +0 -0
  141. /package/dist/{test → src/test}/Wrapper.d.ts +0 -0
  142. /package/dist/{test → src/test}/getWrapper.d.ts +0 -0
  143. /package/dist/{test → src/test}/index.d.ts +0 -0
  144. /package/dist/{types → src/types}/AccountType.d.ts +0 -0
  145. /package/dist/{types → src/types}/CaProvinceCode.d.ts +0 -0
  146. /package/dist/{types → src/types}/CountryCode.d.ts +0 -0
  147. /package/dist/{types → src/types}/Locale.d.ts +0 -0
  148. /package/dist/{types → src/types}/MonthCode.d.ts +0 -0
  149. /package/dist/{types → src/types}/TaxForm.d.ts +0 -0
  150. /package/dist/{types → src/types}/UsStateCode.d.ts +0 -0
  151. /package/dist/{types → src/types}/Utilities.d.ts +0 -0
  152. /package/dist/{types → src/types}/Yes.d.ts +0 -0
  153. /package/dist/{types → src/types}/YesNo.d.ts +0 -0
  154. /package/dist/{types → src/types}/client/ClientTaxDocumentationStatus.d.ts +0 -0
  155. /package/dist/{types → src/types}/client/index.d.ts +0 -0
  156. /package/dist/{types → src/types}/index.d.ts +0 -0
  157. /package/dist/{types → src/types}/server/TaxDocumentationStatus.d.ts +0 -0
  158. /package/dist/{types → src/types}/server/enums.d.ts +0 -0
  159. /package/dist/{types → src/types}/server/index.d.ts +0 -0
  160. /package/dist/{ui → src/ui}/ActionButton/ActionButton.d.ts +0 -0
  161. /package/dist/{ui → src/ui}/ActionButton/index.d.ts +0 -0
  162. /package/dist/{ui → src/ui}/Actions/index.d.ts +0 -0
  163. /package/dist/{ui → src/ui}/CheckBox/index.d.ts +0 -0
  164. /package/dist/{ui → src/ui}/DateOfBirthInput/DateOfBirthInput.d.ts +0 -0
  165. /package/dist/{ui → src/ui}/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +0 -0
  166. /package/dist/{ui → src/ui}/DateOfBirthInput/index.d.ts +0 -0
  167. /package/dist/{ui → src/ui}/DateOfBirthInput/useDateOfBirthInput.d.ts +0 -0
  168. /package/dist/{ui → src/ui}/HideShowButton/HideShowButton.d.ts +0 -0
  169. /package/dist/{ui → src/ui}/HideShowButton/index.d.ts +0 -0
  170. /package/dist/{ui → src/ui}/MaskedContent/index.d.ts +0 -0
  171. /package/dist/{ui → src/ui}/MaskedInput/index.d.ts +0 -0
  172. /package/dist/{ui → src/ui}/Password/index.d.ts +0 -0
  173. /package/dist/{ui → src/ui}/RadioButtons/RadioButtons.d.ts +0 -0
  174. /package/dist/{ui → src/ui}/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
  175. /package/dist/{ui → src/ui}/RadioButtons/index.d.ts +0 -0
  176. /package/dist/{ui → src/ui}/Select/index.d.ts +0 -0
  177. /package/dist/{ui → src/ui}/TextInput/TextInput.d.ts +0 -0
  178. /package/dist/{ui → src/ui}/TextInput/index.d.ts +0 -0
  179. /package/dist/{ui → src/ui}/ToggleButton/ToggleButton.d.ts +0 -0
  180. /package/dist/{ui → src/ui}/ToggleButton/index.d.ts +0 -0
  181. /package/dist/{ui → src/ui}/index.d.ts +0 -0
  182. /package/dist/{utils → src/utils}/cx.d.ts +0 -0
  183. /package/dist/{utils → src/utils}/date.d.ts +0 -0
  184. /package/dist/{utils → src/utils}/getMonthlyDayCount.d.ts +0 -0
  185. /package/dist/{utils → src/utils}/getVerboseDate.d.ts +0 -0
  186. /package/dist/{utils → src/utils}/isBlank.d.ts +0 -0
  187. /package/dist/{utils → src/utils}/kebabCase.d.ts +0 -0
  188. /package/dist/{utils → src/utils}/snakeCaseKeys.d.ts +0 -0
  189. /package/dist/{utils → src/utils}/transformForClient/index.d.ts +0 -0
  190. /package/dist/{utils → src/utils}/transformForClient/transformForClient.d.ts +0 -0
  191. /package/dist/{utils → src/utils}/transformInbound/getForeignAccountType.d.ts +0 -0
  192. /package/dist/{utils → src/utils}/transformInbound/getForeignOtherClassification.d.ts +0 -0
  193. /package/dist/{utils → src/utils}/transformInbound/getForeignTrustClassification.d.ts +0 -0
  194. /package/dist/{utils → src/utils}/transformInbound/getLLCClassification.d.ts +0 -0
  195. /package/dist/{utils → src/utils}/transformInbound/getUsAccountType.d.ts +0 -0
  196. /package/dist/{utils → src/utils}/transformInbound/index.d.ts +0 -0
  197. /package/dist/{utils → src/utils}/transformInbound/transformInbound.d.ts +0 -0
  198. /package/dist/{validations → src/validations}/getInvalidFields.d.ts +0 -0
  199. /package/dist/{validations → src/validations}/getNotifiedFields.d.ts +0 -0
  200. /package/dist/{validations → src/validations}/getRequiredFields.d.ts +0 -0
  201. /package/dist/{validations → src/validations}/invalidFieldRules.d.ts +0 -0
  202. /package/dist/{validations → src/validations}/requiredFieldRules.d.ts +0 -0
  203. /package/dist/{widgets → src/widgets}/TaxBitForm/TaxBitDAC7Form.d.ts +0 -0
  204. /package/dist/{widgets → src/widgets}/TaxBitForm/TaxBitForm.d.ts +0 -0
  205. /package/dist/{widgets → src/widgets}/TaxBitForm/index.d.ts +0 -0
  206. /package/dist/{widgets → src/widgets}/index.d.ts +0 -0
  207. /package/dist/{wizard → src/wizard}/AddressInput/AddressInput.d.ts +0 -0
  208. /package/dist/{wizard → src/wizard}/AddressInput/index.d.ts +0 -0
  209. /package/dist/{wizard → src/wizard}/LanguageSelector/LanguageSelector.d.ts +0 -0
  210. /package/dist/{wizard → src/wizard}/LanguageSelector/index.d.ts +0 -0
  211. /package/dist/{wizard → src/wizard}/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +0 -0
  212. /package/dist/{wizard → src/wizard}/PlaceOfBirthInput/index.d.ts +0 -0
  213. /package/dist/{wizard → src/wizard}/ResidenceInput/index.d.ts +0 -0
  214. /package/dist/{wizard → src/wizard}/RowInput/CheckBoxRow/CheckBoxRow.d.ts +0 -0
  215. /package/dist/{wizard → src/wizard}/RowInput/CheckBoxRow/index.d.ts +0 -0
  216. /package/dist/{wizard → src/wizard}/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -0
  217. /package/dist/{wizard → src/wizard}/RowInput/DateOfBirthRow/index.d.ts +0 -0
  218. /package/dist/{wizard → src/wizard}/RowInput/ErrorRow/index.d.ts +0 -0
  219. /package/dist/{wizard → src/wizard}/RowInput/MaskedInputRow/index.d.ts +0 -0
  220. /package/dist/{wizard → src/wizard}/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -0
  221. /package/dist/{wizard → src/wizard}/RowInput/RadioButtonRow/index.d.ts +0 -0
  222. /package/dist/{wizard → src/wizard}/RowInput/SelectRow/index.d.ts +0 -0
  223. /package/dist/{wizard → src/wizard}/RowInput/TextInputRow/TextInputRow.d.ts +0 -0
  224. /package/dist/{wizard → src/wizard}/RowInput/TextInputRow/index.d.ts +0 -0
  225. /package/dist/{wizard → src/wizard}/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -0
  226. /package/dist/{wizard → src/wizard}/RowInput/ToggleButtonRow/index.d.ts +0 -0
  227. /package/dist/{wizard → src/wizard}/RowInput/VisibleRow/VisibleRow.d.ts +0 -0
  228. /package/dist/{wizard → src/wizard}/RowInput/VisibleRow/index.d.ts +0 -0
  229. /package/dist/{wizard → src/wizard}/RowInput/index.d.ts +0 -0
  230. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
  231. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -0
  232. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +0 -0
  233. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -0
  234. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +0 -0
  235. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -0
  236. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
  237. /package/dist/{wizard → src/wizard}/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -0
  238. /package/dist/{wizard → src/wizard}/TaxBitFormUI/Exemptions/Exemptions.d.ts +0 -0
  239. /package/dist/{wizard → src/wizard}/TaxBitFormUI/Exemptions/index.d.ts +0 -0
  240. /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -0
  241. /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -0
  242. /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
  243. /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -0
  244. /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
  245. /package/dist/{wizard → src/wizard}/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -0
  246. /package/dist/{wizard → src/wizard}/TaxBitFormUI/Summary/Recap.d.ts +0 -0
  247. /package/dist/{wizard → src/wizard}/TaxBitFormUI/Summary/Summary.d.ts +0 -0
  248. /package/dist/{wizard → src/wizard}/TaxBitFormUI/Summary/index.d.ts +0 -0
  249. /package/dist/{wizard → src/wizard}/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -0
  250. /package/dist/{wizard → src/wizard}/TaxBitFormUI/TaxBitFormUI.d.ts +0 -0
  251. /package/dist/{wizard → src/wizard}/TaxBitFormUI/index.d.ts +0 -0
  252. /package/dist/{wizard → src/wizard}/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@taxbit/react-sdk",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "description": "TaxBit Tax Documentation",
5
5
  "author": "TaxBit",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
9
- "dist/widget.css"
9
+ "dist/src"
10
10
  ],
11
11
  "main": "./dist/taxbit-react-sdk.umd.cjs",
12
12
  "module": "./dist/taxbit-react-sdk.js",
@@ -33,8 +33,7 @@
33
33
  "test": "vitest"
34
34
  },
35
35
  "peerDependencies": {
36
- "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
37
- "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
36
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0"
38
37
  },
39
38
  "devDependencies": {
40
39
  "@types/react": "^18.0.0",
@@ -1,10 +0,0 @@
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 +0,0 @@
1
- export declare const camelCaseKeys: (item: unknown) => unknown;
@@ -1,6 +0,0 @@
1
- export * from './convertYesNoToBoolean';
2
- export * from './transformOutbound';
3
- export * from './transformToOutboundAccoutHolder';
4
- export * from './transformToOutboundAddress';
5
- export * from './transformToOutboundRegardedOwner';
6
- export * from './transformToOutboundTaxResidenceFields';
@@ -1,3 +0,0 @@
1
- import { TaxDocumentation } from '../../types';
2
- import { SignedDatedComprehensiveTaxDocumentation } from '../../types/server';
3
- export declare const transformOutbound: (data: TaxDocumentation) => SignedDatedComprehensiveTaxDocumentation;
@@ -1,3 +0,0 @@
1
- import { TaxDocumentation } from 'types';
2
- import { AccountHolderTaxDocumentation } from 'types/server';
3
- export declare const transformToOutboundAccountHolder: (data: TaxDocumentation) => AccountHolderTaxDocumentation | undefined;
@@ -1,6 +0,0 @@
1
- import { TaxDocumentation } from 'types';
2
- import { Address } from 'types/server';
3
- export declare const transformToOutboundAccountHolderAddress: (data: TaxDocumentation) => Address | undefined;
4
- export declare const transformToOutboundRegardedOwnerAddress: (data: TaxDocumentation) => Address | undefined;
5
- export declare const transformToOutboundAccountHolderMailingAddress: (data: TaxDocumentation) => Address | undefined;
6
- export declare const transformToOutboundRegardedOwnerMailingAddress: (data: TaxDocumentation) => Address | undefined;
@@ -1,3 +0,0 @@
1
- import { TaxDocumentation } from 'types';
2
- import { RegardedOwnerTaxDocumentation } from 'types/server';
3
- export declare const transformToOutboundRegardedOwner: (data: TaxDocumentation) => RegardedOwnerTaxDocumentation | undefined;
@@ -1,3 +0,0 @@
1
- import { TaxDocumentation } from 'types';
2
- import { AccountHolderTaxDocumentation } from 'types/server';
3
- export declare const transformToOutboundAccountHolderTaxResidences: (data: TaxDocumentation) => AccountHolderTaxDocumentation['tax_residences'] | undefined;
@@ -1,3 +0,0 @@
1
- import { TaxDocumentationPropertyFile } from '../contexts';
2
- import { TaxDocumentation } from '../types';
3
- export declare const getSubmittableFields: (fields: TaxDocumentation, visibleFields: TaxDocumentationPropertyFile) => TaxDocumentation;
@@ -1,3 +0,0 @@
1
- import type { TaxDocumentation, TaxForm } from 'types';
2
- import { TaxDocumentationPropertyFile } from '../contexts';
3
- export declare const getVisibleFields: (fields: TaxDocumentation, supportedFields: TaxDocumentationPropertyFile, supportedForms: TaxForm[]) => TaxDocumentationPropertyFile;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { TaxDocumentationKey } from 'types';
3
- export declare const ErrorRow: ({ label, name, }: {
4
- label?: string | undefined;
5
- name: TaxDocumentationKey;
6
- }) => React.JSX.Element;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { SelectProps } from "ui";
3
- type SelectRowProps = {
4
- label?: true;
5
- subLabel?: true;
6
- onChange?: () => void;
7
- };
8
- export declare const SelectRow: ({ name, label, options, subLabel, addBlank, onChange, }: SelectProps & SelectRowProps) => React.JSX.Element;
9
- export {};
@@ -1,8 +0,0 @@
1
- export * from "./AccountHolderClassification";
2
- export * from "./AccountHolderContact";
3
- export * from "./AccountHolderTax";
4
- export * from "./Exemptions";
5
- export * from "./RegardedOwnerClassification";
6
- export * from "./RegardedOwnerContact";
7
- export * from "./RegardedOwnerTax";
8
- export * from "./Summary";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes