@taxbit/react-sdk 0.3.2 → 0.4.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 (57) hide show
  1. package/README.md +61 -2
  2. package/dist/basic.css +6 -4
  3. package/dist/inline.css +6 -4
  4. package/dist/minimal.css +0 -4
  5. package/dist/src/components/Address/Address.d.ts +2 -3
  6. package/dist/src/components/Form/Form.d.ts +2 -1
  7. package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +5 -0
  8. package/dist/src/components/ProgressStatus/index.d.ts +1 -0
  9. package/dist/src/components/index.d.ts +1 -1
  10. package/dist/src/contexts/FormUI/getLocal.d.ts +21 -0
  11. package/dist/src/contexts/FormUI/useFormUI.d.ts +20 -22
  12. package/dist/src/contexts/FormUI/useFormUIContext.d.ts +43 -47
  13. package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +3 -3
  14. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +8 -5
  15. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +12 -8
  16. package/dist/src/entry/index.d.ts +1 -0
  17. package/dist/src/i18n/index.d.ts +1 -1
  18. package/dist/src/i18n/types/LocalizationKey.d.ts +1 -2
  19. package/dist/src/i18n/types/PropertyFile.d.ts +1 -4
  20. package/dist/src/i18n/utils/getText.d.ts +2 -3
  21. package/dist/src/types/InputStep.d.ts +5 -0
  22. package/dist/src/types/Progress.d.ts +9 -0
  23. package/dist/src/types/TaxDocumentation.d.ts +4 -0
  24. package/dist/src/types/index.d.ts +2 -0
  25. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +2 -2
  26. package/dist/src/ui/Password/Password.d.ts +2 -1
  27. package/dist/src/ui/TextInput/TextInput.d.ts +2 -2
  28. package/dist/src/utils/getFieldsState.d.ts +1 -0
  29. package/dist/src/utils/getHintKeyMap.d.ts +4 -0
  30. package/dist/src/utils/getPromptKeyMap.d.ts +4 -0
  31. package/dist/src/utils/index.d.ts +1 -0
  32. package/dist/src/utils/mergeDeep.d.ts +1 -0
  33. package/dist/src/validations/getInvalidFields.d.ts +2 -2
  34. package/dist/src/validations/getRequiredFields.d.ts +1 -1
  35. package/dist/src/validations/getVisibleFields.d.ts +2 -2
  36. package/dist/src/validations/index.d.ts +1 -2
  37. package/dist/src/validations/invalidFieldRules.d.ts +1 -1
  38. package/dist/src/widgets/TaxBitForm/TaxBitForm.d.ts +3 -2
  39. package/dist/src/wizard/AddressInput/AddressInput.d.ts +1 -1
  40. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -2
  41. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +7 -0
  42. package/dist/src/wizard/RowInput/AddressRow/index.d.ts +1 -0
  43. package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +1 -2
  44. package/dist/src/wizard/RowInput/index.d.ts +1 -0
  45. package/dist/src/wizard/TaxBitFormUI/Confirmation/Confirmation.d.ts +2 -0
  46. package/dist/src/wizard/TaxBitFormUI/Confirmation/index.d.ts +1 -0
  47. package/dist/src/wizard/TaxBitFormUI/Summary/Summary.d.ts +0 -1
  48. package/dist/src/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +1 -1
  49. package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +3 -2
  50. package/dist/src/wizard/TaxBitFormUI/steps.d.ts +1 -0
  51. package/dist/taxbit-react-sdk.js +2218 -2137
  52. package/dist/taxbit-react-sdk.umd.cjs +10 -10
  53. package/package.json +1 -1
  54. package/dist/src/components/Notification/Notification.d.ts +0 -5
  55. package/dist/src/components/Notification/index.d.ts +0 -1
  56. package/dist/src/validations/getNotifiedFields.d.ts +0 -10
  57. package/dist/src/validations/requiredFieldRules.d.ts +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taxbit/react-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "TaxBit Tax Documentation",
5
5
  "author": "TaxBit",
6
6
  "type": "module",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { TaxDocumentationKey } from 'types';
3
- export declare const Notification: ({ name }: {
4
- name: TaxDocumentationKey;
5
- }) => React.JSX.Element | null;
@@ -1 +0,0 @@
1
- export * from "./Notification";
@@ -1,10 +0,0 @@
1
- import { NotificationKey } from '../i18n/types';
2
- import { TaxDocumentation, TaxDocumentationKey } from '../types';
3
- export type NotificationRule = (fields: TaxDocumentation) => NotificationKey | undefined;
4
- export type Notifications = {
5
- [key in TaxDocumentationKey]?: NotificationKey;
6
- };
7
- export type NotificationRules = {
8
- [key in TaxDocumentationKey]?: NotificationRule;
9
- };
10
- export declare const getNotifiedFields: (fields: TaxDocumentation, shownFields: Set<TaxDocumentationKey>) => Notifications;
@@ -1,7 +0,0 @@
1
- import { TaxDocumentation, TaxDocumentationKey } from 'types/TaxDocumentation';
2
- import { TaxForm } from '../types';
3
- export type FormUIRequired = ((fields: TaxDocumentation, taxForms?: TaxForm[]) => boolean | undefined) | (() => boolean | undefined);
4
- export type FormUIRequiredFields = {
5
- [key in TaxDocumentationKey]?: FormUIRequired;
6
- };
7
- export declare const requiredFieldRules: FormUIRequiredFields;